使用stack
时,可以指定-with-rtsopts
在package.yaml
如下
ghc-options:
- -with-rtsopts=-N
但是,尚不清楚如何一次代表多个rtsopts。在这个例子中,我在双引号周围加上了双引号
ghc-options:
- -with-rtsopts="-N -I0 -qg"
...但这是行不通的...
Preprocessing library for uke-0.1.0.0..
Building library for uke-0.1.0.0..
Preprocessing executable 'uke-exe' for uke-0.1.0.0..
Building executable 'uke-exe' for uke-0.1.0.0..
ghc: unrecognised flag: -qg"
逸出多个-with-rtsopts
值的正确方法是什么package.yaml
?
如果您用双引号将整个表达式括起来,那么它将起作用:
ghc-options:
- '"-with-rtsopts=-N -I0 -qg"'
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句