Did some work on datatype declarations.

This commit is contained in:
2011-01-07 18:00:11 -08:00
parent 93c53c7943
commit 134164c4d4
2 changed files with 28 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ data ImportName = ImportNamed QualifiedName
deriving (Show)
data Show a => Decl a =
DeclData a [Type] QualifiedName [QualifiedName] [DataClause]
DeclData a [Type] QualifiedName [QualifiedName] [DataClause a]
| DeclType a [Type]
| DeclNewtype a [Type]
| DeclClass a [Type]
@@ -45,7 +45,7 @@ addTypeRestrictions rs (DeclValue s _ a b c) = DeclValue s rs a b c
addTypeRestrictions rs (DeclExport s d) =
DeclExport s (addTypeRestrictions rs d)
data DataClause = DataClause QualifiedName [Type]
data DataClause a = DataClause a QualifiedName [Maybe QualifiedName] [Type]
deriving (Show)
data Show a => Expr a =