Can I change the stack size limits from within the

2019-06-17 05:24发布

问题:

I can configure the maximum stack size of a GHC compiled Haskell program by passing +RTS -Kn to it, where n is some number.

Is there a way to change this setting from within the program?

(I’d like to benchmark stack consumption of various functions, and hence try to run it with various limits, catching the StackOverflow exception.)

回答1:

Time has answered this with: „No“