Skip to content

Commit 6f98cbe

Browse files
committed
enable to customize between cabal repl and cabal new-repl
1 parent d771202 commit 6f98cbe

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

haskell-customize.el

+8
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@ which will be prepended to `haskell-process-args-cabal-repl'."
137137
:group 'haskell-interactive
138138
:type '(choice string (repeat string)))
139139

140+
(defcustom haskell-process-cabal-repl-command
141+
"repl"
142+
"The repl command for starting ghci with cabal.
143+
This can either be repl or new-repl."
144+
:group 'haskell-interactive
145+
:type '(choice (const repl)
146+
(const new-repl)))
147+
140148
(defcustom haskell-process-path-stack
141149
"stack"
142150
"The path for starting stack.

haskell-process.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ HPTYPE is the result of calling `'haskell-process-type`' function."
9595
(list
9696
(append
9797
(haskell-process-path-to-list haskell-process-path-cabal)
98-
(list "repl")
98+
(list haskell-process-cabal-repl-command)
9999
haskell-process-args-cabal-repl
100100
(let ((target (haskell-session-target session)))
101101
(if target (list target) nil)))))))

inf-haskell.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ directory structure."
6262
haskell-process-path-ghci
6363
(list haskell-process-path-ghci))
6464
haskell-process-args-ghci))))
65-
('cabal-repl `(,haskell-process-path-cabal "repl" ,@haskell-process-args-cabal-repl))
65+
('cabal-repl `(,haskell-process-path-cabal ,haskell-process-cabal-repl-command ,@haskell-process-args-cabal-repl))
6666
('stack-ghci `(,haskell-process-path-stack "ghci" ,@haskell-process-args-stack-ghci))))
6767

6868
(defconst inferior-haskell-info-xref-re

0 commit comments

Comments
 (0)