On 17/02/2011 05:20 PM, Brandon Moore wrote:

If you are using ghc 7.01, you need to compile with -rtsopts for the compiled
program to parse +RTS options.

That's true.

I don't know of any way to provide a default value at compile time.

That would be -with-rtsopts="-N2" (or whatever)

http://www.haskell.org/ghc/docs/7.0-latest/html/users_guide/runtime-control.html#id3095435

But note that with GHC 7.x, the RTS *automatically* chooses the correct number of threads now. You no longer need to specify this manually (unless you specifically want to use some other number of threads for some reason).

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to