File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,13 @@ pass additional flags to `ghc'."
91
91
:group 'haskell-interactive
92
92
:type '(repeat (string :tag " Argument" )))
93
93
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
+
94
101
(defcustom haskell-process-type
95
102
'ghci
96
103
" The inferior Haskell process type to use."
@@ -431,8 +438,8 @@ to be loaded by ghci."
431
438
(lambda (state )
432
439
(haskell-process-send-string
433
440
(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))
436
443
(format " %s %s "
437
444
(ecase haskell-process-type
438
445
('ghci " cabal" )
You can’t perform that action at this time.
0 commit comments