Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions haskell-customize.el
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ which will be prepended to `haskell-process-args-cabal-repl'."
:group 'haskell-interactive
:type '(choice string (repeat string)))

(defcustom haskell-process-cabal-repl-command
'repl
"The repl command for starting ghci with cabal.
This can either be repl or new-repl."
:group 'haskell-interactive
:type '(choice (const repl)
(const new-repl)))

(defcustom haskell-process-path-stack
"stack"
"The path for starting stack.
Expand Down
2 changes: 1 addition & 1 deletion haskell-process.el
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ HPTYPE is the result of calling `'haskell-process-type`' function."
(list
(append
(haskell-process-path-to-list haskell-process-path-cabal)
(list "repl")
(list (symbol-name haskell-process-cabal-repl-command))
haskell-process-args-cabal-repl
(let ((target (haskell-session-target session)))
(if target (list target) nil)))))))
Expand Down
2 changes: 1 addition & 1 deletion inf-haskell.el
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ directory structure."
haskell-process-path-ghci
(list haskell-process-path-ghci))
haskell-process-args-ghci))))
('cabal-repl `(,haskell-process-path-cabal "repl" ,@haskell-process-args-cabal-repl))
('cabal-repl `(,haskell-process-path-cabal (symbol-name ,haskell-process-cabal-repl-command) ,@haskell-process-args-cabal-repl))
('stack-ghci `(,haskell-process-path-stack "ghci" ,@haskell-process-args-stack-ghci))))

(defconst inferior-haskell-info-xref-re
Expand Down