[Haskell-cafe] happy parser generator - stack space overflow error

Albert Y. C. Lai trebla at vex.net
Sun Dec 25 19:32:23 UTC 2016

On 2016-12-25 01:49 AM, Mageshkumar Kuppusamy wrote:
> happy -gca ParSysverilog.y and i get the below error.
> Stack space overflow: current size 8388608 bytes.
> Use `+RTS -Ksize -RTS' to increase it.

This is strange (read: archaic) because GHC since 7.10 (or maybe 
earlier) has been defaulting stack size to "80% physical memory size" 
rather than 8MB. Contrapositively, seeing the 8MB cap implies that your 
copy of happy was built by a pretty old GHC.

So simply rebuild happy by a recent GHC to enjoy the modern stack cap.

More information about the Haskell-Cafe mailing list