Confusing GHC error message
Simon Peyton-Jones
simonpj at microsoft.com
Mon Nov 26 05:35:57 EST 2001
Yes, good point. I've improved the error message. It now reports a
malformed class declaration.
S
| -----Original Message-----
| From: George Russell [mailto:ger at tzi.de]
| Sent: 23 November 2001 13:22
| To: glasgow-haskell-bugs at haskell.org
| Subject: Confusing GHC error message
|
|
| (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".
|
More information about the Glasgow-haskell-bugs
mailing list