Variable: haskell-align-imports-regexp

haskell-align-imports-regexp is a variable defined in haskell-align-imports.el.

Value

"^\\(import[ ]+\\)\\(qualified \\)?[ ]*\\(\"[^\"]*\" \\)?[ ]*\\([A-Za-z0-9_.']+\\)[ ]*\\([ ]*as [A-Z][^ ]*\\)?[ ]*\\((.*)\\)?\\([ ]*hiding (.*)\\)?\\( -- .*\\)?[ ]*$"

Documentation

Regex used for matching components of an import.

Source Code

;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-align-imports.el
(defvar haskell-align-imports-regexp
  (concat "^\\(import[ ]+\\)"
          "\\(qualified \\)?"
          "[ ]*\\(\"[^\"]*\" \\)?"
          "[ ]*\\([A-Za-z0-9_.']+\\)"
          "[ ]*\\([ ]*as [A-Z][^ ]*\\)?"
          "[ ]*\\((.*)\\)?"
          "\\([ ]*hiding (.*)\\)?"
          "\\( -- .*\\)?[ ]*$")
  "Regex used for matching components of an import.")