Stack overflow

Ian Lynagh igloo at earth.li
Fri Nov 2 09:31:54 EST 2001


With

main = putStrLn $ show $ last $ zip [1..] (replicate 100000 'a')

I get

Stack space overflow: current size 1048576 bytes.
Use `+RTS -Ksize' to increase it.

If I Change the [1..] to ([1..] :: [Int]) then it works fine.


Ian





More information about the Glasgow-haskell-bugs mailing list