Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
49bff321
Commit
49bff321
authored
Jul 23, 2003
by
simonpj
Browse files
[project @ 2003-07-23 13:08:22 by simonpj]
Comment case-alternative invariants
parent
a108d2c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/coreSyn/CoreSyn.lhs
View file @
49bff321
...
...
@@ -79,7 +79,8 @@ data Expr b -- "b" for the type of binders,
| Lam b (Expr b)
| Let (Bind b) (Expr b)
| Case (Expr b) b [Alt b] -- Binder gets bound to value of scrutinee
-- DEFAULT case must be *first*, if it occurs at all
-- Invariant: the list of alternatives is ALWAYS EXHAUSTIVE
-- Invariant: the DEFAULT case must be *first*, if it occurs at all
| Note Note (Expr b)
| Type Type -- This should only show up at the top
-- level of an Arg
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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