[project @ 2003-08-19 22:09:09 by krc]
authorkrc <unknown>
Tue, 19 Aug 2003 22:09:10 +0000 (22:09 +0000)
committerkrc <unknown>
Tue, 19 Aug 2003 22:09:10 +0000 (22:09 +0000)
commit662cb69b4a361a22862a0c7acd0150cad0a830c0
tree29cabbfe1fb668cb0055bb15e3c7b321e8165a4b
parenta465e8bda2a03163fa45976c531307faeea76490
[project @ 2003-08-19 22:09:09 by krc]
External Core programs sometimes contain newtype declarations with no
data constructors. GHC expected every newtype declaration to have at
least one data constructor, so it would previously fail with an "empty list"
error if you tried to compile such a program. These declarations are handled
properly now.
ghc/compiler/main/HscTypes.lhs
ghc/compiler/prelude/PrelNames.lhs
ghc/compiler/typecheck/TcTyClsDecls.lhs