Function: haskell-process-type
haskell-process-type is a natively compiled function defined in
haskell-customize.el.
Signature
(haskell-process-type)
Documentation
Return haskell-process-type(var)/haskell-process-type(fun), or a guess if that variable is 'auto.
Converts the obsolete 'cabal-new-repl to its equivalent 'cabal-repl.
May also set inferior-haskell-root-dir
Source Code
;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-customize.el
(defun haskell-process-type ()
"Return `haskell-process-type', or a guess if that variable is \\='auto.
Converts the obsolete \\='cabal-new-repl to its equivalent \\='cabal-repl.
May also set `inferior-haskell-root-dir'"
(cond
((eq 'cabal-new-repl haskell-process-type)
(warn "haskell-process-type has obsolete value 'cabal-new-repl, changing it to 'cabal-repl")
(setq haskell-process-type 'cabal-repl) ;to avoid repeating the same warning
'cabal-repl)
((eq 'auto haskell-process-type)
(let* ((r (haskell-build-type))
(tag (car r))
(dir (cdr r)))
(setq inferior-haskell-root-dir (or dir default-directory))
(cdr (assq tag '((cabal-project . cabal-repl)
(cabal-sandbox . cabal-repl)
(cabal . cabal-repl)
(stack . stack-ghci)
(ghc . ghci))))))
(t haskell-process-type)))