[Haskell-beginners] How to explain this behaviour of ghc ?

sylvain sylvain.nahas at googlemail.com
Fri Oct 10 16:55:42 EDT 2008


Hi,

when loaded in ghci (version 6.8.2) the following code snippet 

data Test = A Int
instance Show Test
main = print (A 1)

leads to:

*Main> main
*** Exception: stack overflow

How to explain that ? 

Thanks,
Sylvain



More information about the Beginners mailing list