From 91f37e6a9be2c17642f5beb0a4bdddef2cb6fb37 Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Wed, 3 Jan 2007 08:25:17 +0000 Subject: [PATCH] Comments only --- compiler/hsSyn/HsDecls.lhs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/compiler/hsSyn/HsDecls.lhs b/compiler/hsSyn/HsDecls.lhs index 6d49bd8..09d8d0a 100644 --- a/compiler/hsSyn/HsDecls.lhs +++ b/compiler/hsSyn/HsDecls.lhs @@ -390,10 +390,11 @@ data TyClDecl name -- Nothing for everything else tcdKindSig:: Maybe Kind, -- Optional kind sig - -- (Just k) for - -- (a) GADT-style data type decls with user kind sig - -- (b) 'data instance' decls with user kind sig - -- (c) 'data family' decls, whether or not there is a kind sig + -- (Just k) for a + -- (a) GADT-style 'data', or 'data instance' decl + -- with explicit kind sig + -- (b) 'data family' decl, whether or not + -- there is an explicit kind sig -- (this is how we distinguish a data family decl) tcdCons :: [LConDecl name], -- Data constructors @@ -409,8 +410,11 @@ data TyClDecl name -- are non-empty for the newtype-deriving case } -- data family: tcdPats = Nothing, tcdCons = [], tcdKindSig = Just k + -- -- data instance: tcdPats = Just tys - -- data: tcdPats = Nothing, tcdCons is non-empty + -- + -- data: tcdPats = Nothing, + -- tcdCons is non-empty *or* tcdKindSig = Nothing | TyFunction {tcdLName :: Located name, -- type constructor tcdTyVars :: [LHsTyVarBndr name], -- type variables -- 1.7.10.4