[project @ 2005-11-16 17:45:38 by simonpj]
authorsimonpj <unknown>
Wed, 16 Nov 2005 17:45:39 +0000 (17:45 +0000)
committersimonpj <unknown>
Wed, 16 Nov 2005 17:45:39 +0000 (17:45 +0000)
commit491c85e7478f46d92166b938b4833504a28ff9d4
treef99789824ac07c6773940847123417cc00cdf39a
parentcdea99491a8dedfc53fc2e8c4c8fbaf209802b27
[project @ 2005-11-16 17:45:38 by simonpj]
Better error reporting for newtypes with too many constructors,
or too many fields.  Instead of yielding a parse error, we
parse it like a data type declaration, and give a comprehensible
error message later.

A suggestion from Jan-Willem.
ghc/compiler/Makefile
ghc/compiler/parser/Parser.y.pp
ghc/compiler/typecheck/TcTyClsDecls.lhs