ulidtko
03.08.2011 13:05
$ cat test.hs
module Test where
data Test = Test
instance Eq Test where
$ ghci
Prelude> :l test.hs
[1 of 1] Compiling Test ( test.hs, interpreted )
Ok, modules loaded: Test.
*Test> let t1 = Test
*Test> let t2 = Test
*Test> t1 == t2
^C^C^C^C*** Exception: stack overflow
.\__/.
Да, я понимаю, где происходит ... more →