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
jberryman
GHC
Commits
50e701e8
Commit
50e701e8
authored
Jul 16, 2001
by
sof
Browse files
[project @ 2001-07-16 00:43:56 by sof]
hscStmt: track changes made to the TC entry points typecheckExpr, typecheckStmt
parent
a8b36eb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/main/HscMain.lhs
View file @
50e701e8
...
...
@@ -513,11 +513,12 @@ hscStmt dflags hst hit pcs0 icontext stmt just_expr
-- Typecheck it
maybe_tc_return <-
if just_expr
then case rn_stmt of { (
syn,
ExprStmt e _ _, decls) ->
then case rn_stmt of { (ExprStmt e _ _, decls) ->
typecheckExpr dflags pcs1 hst type_env
print_unqual iNTERACTIVE (syn,e,decls) }
else typecheckStmt dflags pcs1 hst type_env
print_unqual iNTERACTIVE bound_names rn_stmt
print_unqual iNTERACTIVE (e,decls) }
else case rn_stmt of { (stmt, decls) ->
typecheckStmt dflags pcs1 hst type_env
print_unqual iNTERACTIVE bound_names (stmt,decls) }
; case maybe_tc_return of
Nothing -> return (pcs0, Nothing)
...
...
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