Skip to content

Commit ed44b47

Browse files
author
Kabelo Moiloa
committed
Don't change directory when using stack-ghci.
1 parent 3434af6 commit ed44b47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

haskell-commands.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ You can create new session using function `haskell-session-make'."
6969
(progn (set-process-sentinel (haskell-process-process process) 'haskell-process-sentinel)
7070
(set-process-filter (haskell-process-process process) 'haskell-process-filter))
7171
(haskell-process-send-startup process)
72-
(unless (eq 'cabal-repl (haskell-process-type)) ;; "cabal repl" sets the proper CWD
72+
(unless (or (eq 'cabal-repl (haskell-process-type))
73+
(eq 'stack-ghci (haskell-process-type))) ;; Both "cabal repl" and "stack ghci" set the proper CWD.
7374
(haskell-process-change-dir session
7475
process
7576
(haskell-session-current-dir session)))

0 commit comments

Comments
 (0)