Confusing GHC error message
George Russell
ger at tzi.de
Fri Nov 23 08:21:54 EST 2001
(Yes, I know that's not very impressive, but you must all have been wondering what's happened to me.)
The attached file, when compiled with ghc5.02.1, -fglasgow-exts -fallow-overlapping-instances -fallow-undecidable-instances produces the error message
Haskell.hs:11: Illegal left hand side in data/newtype declaration
This is rather confusing, as the error comes not from the data declaration in the file, but
because on the next line "class" was accidentally typed, rather than "instance".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Haskell.hs
Type: application/octet-stream
Size: 166 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20011123/771223df/Haskell.obj
More information about the Glasgow-haskell-bugs
mailing list