Function: haskell-indentation-declaration
haskell-indentation-declaration is a natively compiled function
defined in haskell-indentation.el.
Signature
(haskell-indentation-declaration)
Documentation
Parse function or type 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-declaration ()
"Parse function or type declaration."
(haskell-indentation-separated #'haskell-indentation-expression "," nil)
(when (string= current-token "|")
(haskell-indentation-with-starter
(apply-partially #'haskell-indentation-separated
#'haskell-indentation-guard "|" nil)
nil))
(when (eq current-token 'end-tokens)
(when (member following-token '("|" "=" "::" ","))
(haskell-indentation-add-indentation current-indent)
(throw 'parse-end nil))))