[project @ 2001-06-11 12:21:17 by simonpj]
authorsimonpj <unknown>
Mon, 11 Jun 2001 12:21:17 +0000 (12:21 +0000)
committersimonpj <unknown>
Mon, 11 Jun 2001 12:21:17 +0000 (12:21 +0000)
commit0004357ccaa3149cb112f5f5df1af60e65baad79
tree1be6c753e8b17e33a2533ba9143a00dee41dcfa6
parent0a5856f33c90651ea1a11a6bfe36daefbee50278
[project @ 2001-06-11 12:21:17 by simonpj]
--------------------------
Allow data type declarations
to have zero constructors
--------------------------

This allows

data T a

as a data type declaration; i.e. allows zero constructors.
If there is an '=' sign there must be at least one constructor.

* Parser.y: parse the declaration
* HsDecls: print out the data type declaration right
* TyCon: don't ASSERT that the constructors are non-empty
ghc/compiler/hsSyn/HsDecls.lhs
ghc/compiler/parser/Parser.y
ghc/compiler/types/TyCon.lhs