Less than lovely error message

Jan-Willem Maessen jmaessen at alum.mit.edu
Thu Nov 3 10:32:07 EST 2005


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
>




More information about the Glasgow-haskell-bugs mailing list