File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -398,14 +398,16 @@ same vein as `haskell-indent-spaces'."
398
398
" Return `haskell-process-type' , or a guess if that variable is 'auto."
399
399
(if (eq 'auto haskell-process-type)
400
400
(cond
401
+ ; ; User has explicitly initialized this project with cabal
402
+ ((locate-dominating-file default-directory " .cabal-sandbox" )
403
+ 'cabal-repl )
401
404
((and (locate-dominating-file default-directory " stack.yaml" )
402
405
(executable-find " stack" ))
403
406
'stack-ghci )
404
407
((locate-dominating-file
405
408
default-directory
406
409
(lambda (d )
407
- (or (file-directory-p (expand-file-name " .cabal-sandbox" d))
408
- (cl-find-if (lambda (f ) (string-match-p " .\\ .cabal\\ '" f)) (directory-files d)))))
410
+ (cl-find-if (lambda (f ) (string-match-p " .\\ .cabal\\ '" f)) (directory-files d))))
409
411
'cabal-repl )
410
412
(t 'ghci ))
411
413
haskell-process-type))
You can’t perform that action at this time.
0 commit comments