简体   繁体   English

如何通过堆栈获取GHC Core输出?

[英]How can I get GHC Core output via stack?

How do I get a stack build command to dump the GHC Core? 如何获取stack build命令以转储GHC Core? I've tried this, to no avail: 我试过这个,但无济于事:

stack build :hello_world --ghc-options '-ddump-simpl'

Make sure to clean before, or force recompilation via the stack option --force-dirty and ghc option -fforce-recomp . 确保在之前清理,或通过堆栈选项强制重新编译--force-dirty和ghc选项-fforce-recomp

The files are dumped somewhere around .stack-work/dist/.../build/hello_world/hello_world-tmp/ . 这些文件被转储到.stack-work/dist/.../build/hello_world/hello_world-tmp/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM