Function: haskell-indentation-next-indentation
haskell-indentation-next-indentation is a natively compiled function
defined in haskell-indentation.el.
Signature
(haskell-indentation-next-indentation COL INDENTATIONS &optional NOFAIL)
Documentation
Find the leftmost indentation which is greater than COL.
Indentations are taken from INDENTATIONS, which should be a list. Return the last indentation if there are no bigger ones and NOFAIL is non-NIL.
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-next-indentation (col indentations &optional nofail)
"Find the leftmost indentation which is greater than COL.
Indentations are taken from INDENTATIONS, which should be a
list. Return the last indentation if there are no bigger ones and
NOFAIL is non-NIL."
(when (null indentations)
(error "haskell-indentation-next-indentation called with empty list"))
(or (cl-find-if (lambda (i) (> i col)) indentations)
(when nofail
(car (last indentations)))))