[Haskell-beginners] how to increase the stack size

Erik de Castro Lopo mle+hs at mega-nerd.com
Mon Oct 17 05:37:06 CEST 2011


kolli kolli wrote:

> when I am running the program in my terminal on ubuntu its showing me
> GHC stack-space overflow: current limit is 536870912 bytes.

Are you really sure you want to do that? 512Meg is rather a large
stack and most sane programs probably shouldn't use that much.
I suspect you have a bug in your program, eg a recursion without
a termination condition.

> Use the `-K<size>' option to increase it.
>  how can i increase the stack size????Plz help me out....

   ./program +RTS -K<size>

but its unlikely that will actually help you.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/



More information about the Beginners mailing list