[Haskell-cafe] Fwd: how to increase the stack size

Malcolm Wallace malcolm.wallace at me.com
Mon Oct 17 10:30:50 CEST 2011


>> when I am running the program in my terminal on ubuntu its showing me
>> GHC stack-space overflow: current limit is 536870912 bytes.
>> Use the `-K<size>' option to increase it.
>>  how can i increase the stack size????Plz help me out....
> 
> 
> Others have explained how to "Use the `-K<size>' option",

However, those explanations did not take account of the fact that ghc now ignores +RTS options by default at runtime.  You need to compile the program with an extra option -rtsopts, if you want the +RTS options to work at runtime.

Regards,
    Malcolm



More information about the Haskell-Cafe mailing list