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
Shayne Fletcher
Glasgow Haskell Compiler
Commits
d673a348
Commit
d673a348
authored
Dec 21, 2004
by
simonpj
Browse files
[project @ 2004-12-21 12:21:16 by simonpj]
Comments
parent
d2655be3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/coreSyn/CoreLint.lhs
View file @
d673a348
...
...
@@ -200,7 +200,7 @@ lintSingleBinding rec_flag (binder,rhs)
lintCoreExpr :: CoreExpr -> LintM Type
-- The returned type has the substitution from the monad
-- already applied to it:
-- lintCoreExpr e subst = exprT
p
ye (subst e)
-- lintCoreExpr e subst = exprTy
p
e (subst e)
lintCoreExpr (Var var)
= do { checkIdInScope var
...
...
@@ -413,7 +413,8 @@ checkAltExpr expr ty
; ty' <- applySubst ty
; checkTys actual_ty ty' (mkCaseAltMsg expr actual_ty ty') }
lintCoreAlt :: Type -- Type of scrutinee
lintCoreAlt :: Type -- Type of scrutinee; a fixed point of
-- the substitution
-> Type -- Type of the alternative
-> CoreAlt
-> LintM ()
...
...
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