Function: haskell-indentation-scoped-type

haskell-indentation-scoped-type is a natively compiled function defined in haskell-indentation.el.

Signature

(haskell-indentation-scoped-type)

Documentation

Parse scoped type declaration.

For example
   let x :: Int = 12
   do x :: Int <- return 12

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-scoped-type ()
  "Parse scoped type declaration.

For example
   let x :: Int = 12
   do x :: Int <- return 12"
  (haskell-indentation-with-starter
   (apply-partially #'haskell-indentation-separated #'haskell-indentation-type '("->" "=>")))
  (when (member current-token '("<-" "="))
    (haskell-indentation-statement-right #'haskell-indentation-expression)))