Skip to content

Commit 142334f

Browse files
committed
Only default to stack-ghci when the "stack" program is available
See #864
1 parent f4b1841 commit 142334f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

haskell-customize.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ same vein as `haskell-indent-spaces'."
398398
"Return `haskell-process-type', or a guess if that variable is 'auto."
399399
(if (eq 'auto haskell-process-type)
400400
(cond
401-
((locate-dominating-file default-directory "stack.yaml")
401+
((and (locate-dominating-file default-directory "stack.yaml")
402+
(executable-find "stack"))
402403
'stack-ghci)
403404
((locate-dominating-file
404405
default-directory

0 commit comments

Comments
 (0)