Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
133d0902
Commit
133d0902
authored
Sep 06, 2006
by
simonpj@microsoft.com
Browse files
Add comment for the invariant that DataAlt is never a newtype
parent
6f873493
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/coreSyn/CoreSyn.lhs
View file @
133d0902
...
...
@@ -112,7 +112,8 @@ type Arg b = Expr b -- Can be a Type
type Alt b = (AltCon, [b], Expr b) -- (DEFAULT, [], rhs) is the default alternative
data AltCon = DataAlt DataCon
data AltCon = DataAlt DataCon -- Invariant: the DataCon is always from
-- a *data* type, and never from a *newtype*
| LitAlt Literal
| DEFAULT
deriving (Eq, Ord)
...
...
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