Function: haskell-indentation-module
haskell-indentation-module is a natively compiled function defined in
haskell-indentation.el.
Signature
(haskell-indentation-module)
Documentation
Parse module declaration.
Source Code
;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-indentation.el
(defun haskell-indentation-module ()
"Parse module declaration."
(haskell-indentation-with-starter
(lambda ()
(haskell-indentation-read-next-token)
(when (equal current-token 'layout-item)
(haskell-indentation-read-next-token))
(when (string= current-token "(")
(haskell-indentation-list
#'haskell-indentation-module-export
")" ","))
(if (string= current-token "where")
(haskell-indentation-read-next-token)
(when (eq current-token 'end-tokens)
(when (member following-token '(value no-following-token "("))
(haskell-indentation-add-indentation
(+ starter-indent haskell-indentation-starter-offset))
(haskell-indentation-add-indentation
(+ left-indent haskell-indentation-starter-offset))
(throw 'parse-end nil))
(haskell-indentation-add-layout-indent)
(throw 'parse-end nil))))))