Skip to content

Commit a788654

Browse files
committed
don't be so quick to dismiss cabal...
1 parent c72ceab commit a788654

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

haskell-compile.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ base directory for build tools, or the current buffer for
171171
compilation-save-buffers-predicate)
172172
(if-let ((cabaldir (and
173173
(not haskell-compile-ignore-cabal)
174-
(haskell-cabal-find-dir))))
174+
(or (haskell-cabal-find-dir)
175+
(locate-dominating-file default-directory "cabal.project")
176+
(locate-dominating-file default-directory "cabal.project.local")))))
175177
(haskell--compile cabaldir edit-command
176178
'haskell--compile-cabal-last
177179
haskell-compile-cabal-build-command

0 commit comments

Comments
 (0)