Skip to content

Commit aad9d7f

Browse files
committed
Add stack related configuration for compilation
1 parent 5d5a9a0 commit aad9d7f

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

doc/haskell-mode.texi

+11-3
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,17 @@ When invoked, @code{haskell-compile} tries to guess how to compile the
484484
Haskell program your currently visited buffer belongs to, by searching
485485
for a @file{.cabal} file in the current of enclosing parent folders. If
486486
a @file{.cabal} file was found, the command defined in the
487-
@code{haskell-compile-cabal-build-command} option is used. Moreover,
488-
when requesting to compile a @file{.cabal}-file is detected and a
489-
negative prefix argument (e.g. @kbd{C-- C-c C-c}) was given, the
487+
@code{haskell-compile-cabal-build-command} option is used. Note that to
488+
compile a @code{stack} based project you will need to set this variable to
489+
@code{stack build}. As usual you can do it using @code{M-x customize-variable}
490+
or with:
491+
492+
@lisp
493+
(setq haskell-compile-cabal-build-command "stack build")
494+
@end lisp
495+
496+
Moreover, when requesting to compile a @file{.cabal}-file is detected and
497+
a negative prefix argument (e.g. @kbd{C-- C-c C-c}) was given, the
490498
alternative @code{haskell-compile-cabal-build-command-alt} is
491499
invoked. By default, @code{haskell-compile-cabal-build-command-alt}
492500
contains a @samp{cabal clean -s} command in order to force a full

0 commit comments

Comments
 (0)