On 11-08-01 10:12 AM, Simon Marlow wrote:
On 26/07/2011 22:41, Albert Y. C. Lai wrote:
http://www.mail-archive.com/haskell-cafe@haskell.org/msg88368.html
The message linked here doesn't really explain *why*, rather it seems to
be a bug report on haskell-cafe (which I don't usually read, so it
On 26/07/2011 22:41, Albert Y. C. Lai wrote:
On 11-07-26 03:57 PM, Roman Cheplyaka wrote:
The code
main = print $ foldl (+) 0 [1..100]
when compiled (without optimizations) results in a stack overflow, which
is expected.
However, when run from ghci it succeeds. Why is it so?
(Tested with
The code
main = print $ foldl (+) 0 [1..100]
when compiled (without optimizations) results in a stack overflow, which
is expected.
However, when run from ghci it succeeds. Why is it so?
(Tested with GHC 6.12.something and 7.0.4)
Is it related to stack-squeezing? I couldn't find any
On 11-07-26 03:57 PM, Roman Cheplyaka wrote:
The code
main = print $ foldl (+) 0 [1..100]
when compiled (without optimizations) results in a stack overflow, which
is expected.
However, when run from ghci it succeeds. Why is it so?
(Tested with GHC 6.12.something and 7.0.4)
To enjoy