我试图获得相当于编译ghc -threaded -O2
然后运行my.exe +RTS -N4 -s
的配置文件配置。目前,我有编译器标志和运行时选项的Cabal配置
executable my.exe
ghc-options:
-O3
-threaded
-rtsopts
-with-rtsopts="-N4"
main-is: Main.hs
当我运行my.exe
它给了我unexpected RTS argument: -N4
你有没有尝试过而没有围绕'-N4'引号? [这个问题](http://stackoverflow.com/questions/6505648/building-with-runtime-flags-using-cabal-and-ghc)与你非常相似。 – bheklilr 2014-10-31 16:50:39