我是 stack 的忠实粉丝,我已经从我的机器上完全删除了任何独立的 cabal 和 ghc 可执行文件(让 stack 在它自己神秘的 ~/.stack/ 目录中安装它需要的任何东西)......
但是,看起来某些标志在堆栈下无法正常工作。例如,我想使用-ddump-minimal-imports
. 在阴谋集团中,这将是
cabal build --ghc-option=-ddump-minimal-imports
显而易见的翻译是
stack build --ghc-options -ddump-minimal-imports
这会运行,但只产生可执行文件(据我所知,至少......也许输出在神秘的 ~/.stack 目录中的某个地方)。
有没有办法做到这一点?