How do I get a stack build
command to dump the GHC Core?
I've tried this, to no avail:
stack build :hello_world --ghc-options '-ddump-simpl'
How do I get a stack build
command to dump the GHC Core?
I've tried this, to no avail:
stack build :hello_world --ghc-options '-ddump-simpl'
Copyright © 2021 Jogjafile Inc.
Make sure to clean before, or force recompilation via the stack option
--force-dirty
and ghc option-fforce-recomp
.The files are dumped somewhere around
.stack-work/dist/.../build/hello_world/hello_world-tmp/
.