I am such a big fan of the stack that I completely deleted any cabal and ghc executable files from my machine (letting the stack install everything it needs into its own mysterious ~ / .stack / directory) ....
However, it seems that some flags are not working properly on the stack. For example, I want to use -ddump-minimal-imports . In bondage it will be
cabal build --ghc-option=-ddump-minimal-imports
The obvious translation will be
stack build --ghc-options -ddump-minimal-imports
This executes, but produces nothing but an executable file (as far as I can tell, at least .... Perhaps the output is somewhere in the mysterious ~ / .stack directory).
Is there any way to do this?
source share