Add --stack-yaml flag to stack build --silent

Fixes: https://github.com/xmonad/xmonad/issues/322
This commit is contained in:
MuhammedZakir 2021-08-17 23:02:27 +05:30
parent be1d2269ce
commit b77ba03ed9

View File

@ -659,7 +659,7 @@ compile dirs method =
CompileGhc -> CompileGhc ->
run "ghc" ghcArgs run "ghc" ghcArgs
CompileStackGhc stackYaml -> CompileStackGhc stackYaml ->
run "stack" ["build", "--silent"] .&&. run "stack" ["build", "--silent", "--stack-yaml", stackYaml] .&&.
run "stack" ("ghc" : "--stack-yaml" : stackYaml : "--" : ghcArgs) run "stack" ("ghc" : "--stack-yaml" : stackYaml : "--" : ghcArgs)
CompileScript script -> CompileScript script ->
run script [binFileName dirs] run script [binFileName dirs]