Skip to content

Commit 6e4d870

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

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.
488+
489+
You can for instance compile a @code{stack} based project by adding the
490+
following customization.
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)