Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
d34ff7ff
Commit
d34ff7ff
authored
Jan 11, 2007
by
simonpj@microsoft.com
Browse files
Add comments (AT-related)
parent
6c29e9c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/hsSyn/HsDecls.lhs
View file @
d34ff7ff
...
...
@@ -373,12 +373,16 @@ data TyClDecl name
tcdFoType :: FoType
}
-- type/data/newtype family T :: *->*
| TyFamily { tcdFlavour:: FamilyFlavour, -- type, new, or data
tcdLName :: Located name, -- type constructor
tcdTyVars :: [LHsTyVarBndr name], -- type variables
tcdKind :: Maybe Kind -- result kind
}
-- Declares a data type or newtype, giving its construcors
-- data/newtype T a = <constrs>
-- data/newtype instance T [a] = <constrs>
| TyData { tcdND :: NewOrData,
tcdCtxt :: LHsContext name, -- Context
tcdLName :: Located name, -- Type constructor
...
...
@@ -406,9 +410,6 @@ data TyClDecl name
-- Typically the foralls and ty args are empty, but they
-- are non-empty for the newtype-deriving case
}
-- data instance: tcdPats = Just tys
--
-- data: tcdPats = Nothing,
| TySynonym { tcdLName :: Located name, -- type constructor
tcdTyVars :: [LHsTyVarBndr name], -- type variables
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment