Function: haskell-complete-module-regexp

haskell-complete-module-regexp is a natively compiled function defined in haskell-complete-module.el.

Signature

(haskell-complete-module-regexp PATTERN)

Documentation

Make a regular expression for the given module pattern. Example:

"c.m.s" -> "^c[^.]*\\.m[^.]*\\.s[^.]*"

Source Code

;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-complete-module.el
(defun haskell-complete-module-regexp (pattern)
  "Make a regular expression for the given module pattern. Example:

\"c.m.s\" -> \"^c[^.]*\\.m[^.]*\\.s[^.]*\"

"
  (let ((components (mapcar #'haskell-complete-module-component
                            (split-string pattern "\\." t))))
    (concat "^"
            (mapconcat #'identity
                       components
                       "\\."))))