Function: haskell-indentation-lambda-maybe-lambdacase
haskell-indentation-lambda-maybe-lambdacase is a natively compiled
function defined in haskell-indentation.el.
Signature
(haskell-indentation-lambda-maybe-lambdacase)
Documentation
Parse lambda or lambda-case expression.
After a lambda (backslash) there are two possible cases:
- the new lambdacase expression, that can be recognized by the
next token being "case";
- or simply an anonymous function definition in the form of
"expression -> expression".
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-lambda-maybe-lambdacase ()
"Parse lambda or lambda-case expression.
After a lambda (backslash) there are two possible cases:
- the new lambdacase expression, that can be recognized by the
next token being \"case\";
- or simply an anonymous function definition in the form of
\"expression -> expression\"."
(if (string= current-token "case")
(haskell-indentation-with-starter
#'haskell-indentation-case-layout)
(haskell-indentation-phrase-rest
'(haskell-indentation-expression "->" haskell-indentation-expression))))