-
Notifications
You must be signed in to change notification settings - Fork 849
Closed
Description
$ stack build --ghc-options='-ddump-splices'
I want to display on the standard output, not to save to a file.
Question
Why does the extraBuildOptions function specify the " -ddump-hi -ddump-to-file"
option by default?
extraBuildOptions wc bopts = do
colorOpt <- appropriateGhcColorFlag
let ddumpOpts = " -ddump-hi -ddump-to-file"
optsFlag = compilerOptionsCabalFlag wc
baseOpts = ddumpOpts ++ maybe "" (" " ++) colorOpt
if toCoverage (boptsTestOpts bopts)
then do
hpcIndexDir <- toFilePathNoTrailingSep <$> hpcRelativeDir
return [optsFlag, "-hpcdir " ++ hpcIndexDir ++ baseOpts]
else
return [optsFlag, baseOpts]
If remove this option, I think it will work as expected.
Stack version
$ stack --version
Version 1.10.0, Git revision 3b61926935c28efd10c8e6870f927a7d8eb5523c (dirty) (6119 commits) x86_64 hpack-0.29.6
Metadata
Metadata
Assignees
Labels
No labels