Skip to content

Commit eabfef5

Browse files
committed
Make Cabal running string customizable
1 parent 8f496c8 commit eabfef5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

haskell-process.el

+9-2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ pass additional flags to `ghc'."
9191
:group 'haskell-interactive
9292
:type '(repeat (string :tag "Argument")))
9393

94+
(defcustom haskell-process-do-cabal-format-string
95+
":!cd %s && %s"
96+
"The way to run cabal comands. It takes two arguments -- the directory and the command.
97+
See `haskell-process-do-cabal' for more details."
98+
:group 'haskell-interactive
99+
:type 'string)
100+
94101
(defcustom haskell-process-type
95102
'ghci
96103
"The inferior Haskell process type to use."
@@ -431,8 +438,8 @@ to be loaded by ghci."
431438
(lambda (state)
432439
(haskell-process-send-string
433440
(cadr state)
434-
(format ":!%s && %s"
435-
(format "cd %s" (haskell-session-cabal-dir (car state)))
441+
(format haskell-process-do-cabal-format-string
442+
(haskell-session-cabal-dir (car state))
436443
(format "%s %s"
437444
(ecase haskell-process-type
438445
('ghci "cabal")

0 commit comments

Comments
 (0)