Variable: haskell-process-wrapper-function
haskell-process-wrapper-function is a customizable variable defined in
haskell-customize.el.
Value
identity
Documentation
Wrap or transform haskell process commands using this function.
Can be set to a custom function which takes a list of arguments and returns a possibly-modified list.
The following example function arranges for all haskell process commands to be started in the current nix-shell environment:
(lambda (argv) (append (list "nix-shell" "-I" "." "--command" )
(list (mapconcat 'identity argv " "))))
See Info Node (emacs)Directory Variables for a way to set this option on a per-project basis.
Source Code
;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-customize.el
(defcustom haskell-process-wrapper-function
#'identity
"Wrap or transform haskell process commands using this function.
Can be set to a custom function which takes a list of arguments
and returns a possibly-modified list.
The following example function arranges for all haskell process
commands to be started in the current nix-shell environment:
(lambda (argv) (append (list \"nix-shell\" \"-I\" \".\" \"--command\" )
(list (mapconcat \\='identity argv \" \"))))
See Info Node `(emacs)Directory Variables' for a way to set this option on
a per-project basis."
:group 'haskell-interactive
:type '(choice
(function-item :tag "None" :value identity)
(function :tag "Custom function")))