我試圖獲得相當於編譯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