Skip to content

Commit

Permalink
enable to customize between cabal repl and cabal new-repl
Browse files Browse the repository at this point in the history
  • Loading branch information
ukari committed Apr 18, 2021
1 parent d771202 commit 6f98cbe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
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 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 ,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

0 comments on commit 6f98cbe

Please sign in to comment.