Less than lovely error message
Simon Peyton-Jones
simonpj at microsoft.com
Wed Nov 16 12:45:45 EST 2005
Good idea. Done.
Simion
| -----Original Message-----
| From: glasgow-haskell-bugs-bounces at haskell.org
[mailto:glasgow-haskell-bugs-
| bounces at haskell.org] On Behalf Of Jan-Willem Maessen
| Sent: 03 November 2005 15:32
| To: glasgow-haskell-bugs at haskell.org
| Subject: Less than lovely error message
|
| Mail still occasionally vanishing into the ether. This has been
| hanging about for a little while now.
|
| -Jan
|
| Begin forwarded message:
|
| > If I mistakenly write a multi-field newtype, the error message
| > which results in 6.4.1 is rather obscure:
| >
| > newtype Empty = E {e :: (IO HT), hfe :: HashFun}
| >
| >
| > HashTest.hs:18:31: parse error on input `,'
| >
| >
| > I'm hoping this wouldn't actually be that difficult to fix to say
| > something like:
| >
| > HashTest.hs:18:31: newtype cannot have multiple fields
| >
| >
| > [I'm writing some QuickCheck tests for Data.HashTable...]
| >
| > -Jan-Willem Maessen
| >
|
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list