Nested Types stack size ...

Hi, I'm using deeply nested types in my app and exceed some stack-size in ghci. I can't remember the runtime option I have to pass to ghci anymore, it's been about a year since I last pursued this approach. Is it also possible to set this stack-size via pragma in the source code? Günther

Hi, Günther Schmidt schreef:
Hi,
I'm using deeply nested types in my app and exceed some stack-size in ghci.
I can't remember the runtime option I have to pass to ghci anymore, it's been about a year since I last pursued this approach. ghci +RTS --help suggests -K<size> Sets the maximum stack size (default 8M) Egs: -K32k -K512k. ghci is just another Haskell program which uses the GHC RTS.
Is it also possible to set this stack-size via pragma in the source code? Via an OPTIONS_GHC pragma, if possible. --
Best Regards, Ron de Bruijn, Developer, Gamr7

Hello Ron, thank you, but it was not the run-time stack size I meant. It was the stack size for nested types which defaults to 20 or so IIRC. My nested types currently go to about 23 deep. Günther Am 04.02.10 14:46, schrieb Ron de Bruijn:
Hi,
Günther Schmidt schreef:
Hi,
I'm using deeply nested types in my app and exceed some stack-size in ghci.
I can't remember the runtime option I have to pass to ghci anymore, it's been about a year since I last pursued this approach. ghci +RTS --help suggests -K<size> Sets the maximum stack size (default 8M) Egs: -K32k -K512k. ghci is just another Haskell program which uses the GHC RTS.
Is it also possible to set this stack-size via pragma in the source code? Via an OPTIONS_GHC pragma, if possible.

Hello Serguey, great, that's the one! Can I set this in the source code itself too? Günther Am 04.02.10 15:26, schrieb Serguey Zefirov:
2010/2/4 Günther Schmidt
: Hello Ron,
thank you, but it was not the run-time stack size I meant. It was the stack size for nested types which defaults to 20 or so IIRC. My nested types currently go to about 23 deep.
-fcontext-stack=100

Hello Günther, Thursday, February 4, 2010, 6:49:05 PM, you wrote:
Can I set this in the source code itself too?
http://www.haskell.org/ghc/docs/latest/html/users_guide/flag-reference.html says that this option is dynamic so afaik it should work -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
participants (4)
-
Bulat Ziganshin
-
Günther Schmidt
-
Ron de Bruijn
-
Serguey Zefirov