Skip to content

Commit 3650a8e

Browse files
committed
Merge pull request #971 from PierreR/doc
[Doc] Add stack related configuration for compilation
2 parents e589a79 + aad9d7f commit 3650a8e

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
@@ -603,9 +603,17 @@ When invoked, @code{haskell-compile} tries to guess how to compile the
603603
Haskell program your currently visited buffer belongs to, by searching
604604
for a @file{.cabal} file in the current of enclosing parent folders. If
605605
a @file{.cabal} file was found, the command defined in the
606-
@code{haskell-compile-cabal-build-command} option is used. Moreover,
607-
when requesting to compile a @file{.cabal}-file is detected and a
608-
negative prefix argument (e.g. @kbd{C-- C-c C-c}) was given, the
606+
@code{haskell-compile-cabal-build-command} option is used. Note that to
607+
compile a @code{stack} based project you will need to set this variable to
608+
@code{stack build}. As usual you can do it using @code{M-x customize-variable}
609+
or with:
610+
611+
@lisp
612+
(setq haskell-compile-cabal-build-command "stack build")
613+
@end lisp
614+
615+
Moreover, when requesting to compile a @file{.cabal}-file is detected and
616+
a negative prefix argument (e.g. @kbd{C-- C-c C-c}) was given, the
609617
alternative @code{haskell-compile-cabal-build-command-alt} is
610618
invoked. By default, @code{haskell-compile-cabal-build-command-alt}
611619
contains a @samp{cabal clean -s} command in order to force a full

0 commit comments

Comments
 (0)