I am such a big fan of stack, that I've removed any independent cabal and ghc executables completely from my machine (letting stack install whatever it needs in its own mysterious ~/.stack/ directory)....
However, it looks like some flags aren't working properly under stack. For instance, I want to use -ddump-minimal-imports
. In cabal this would be
cabal build --ghc-option=-ddump-minimal-imports
The obvious translation would be
stack build --ghc-options -ddump-minimal-imports
This runs, but produces nothing but the executable (as far as I can tell, at least.... Perhaps the output is somewhere in the mysterious ~/.stack dir).
Is there a way to do this?