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
7b13d210
Commit
7b13d210
authored
Jul 30, 2010
by
simonpj@microsoft.com
Browse files
De-polymorphise
parent
c800c163
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/typecheck/TcArrows.lhs
View file @
7b13d210
...
@@ -214,11 +214,10 @@ tc_cmd env cmd@(HsLam (MatchGroup [L mtch_loc (match@(Match pats _maybe_rhs_sig
...
@@ -214,11 +214,10 @@ tc_cmd env cmd@(HsLam (MatchGroup [L mtch_loc (match@(Match pats _maybe_rhs_sig
tc_cmd env cmd@(HsDo do_or_lc stmts body _ty) (cmd_stk, res_ty)
tc_cmd env cmd@(HsDo do_or_lc stmts body _ty) (cmd_stk, res_ty)
= do { checkTc (null cmd_stk) (nonEmptyCmdStkErr cmd)
= do { checkTc (null cmd_stk) (nonEmptyCmdStkErr cmd)
; (stmts', body') <- tcStmts do_or_lc tc
_stmt
stmts res_ty $
; (stmts', body') <- tcStmts do_or_lc
(
tc
MDoStmt tc_rhs)
stmts res_ty $
tcGuardedCmd env body []
tcGuardedCmd env body []
; return (HsDo do_or_lc stmts' body' res_ty) }
; return (HsDo do_or_lc stmts' body' res_ty) }
where
where
tc_stmt = tcMDoStmt tc_rhs
tc_rhs rhs = do { ty <- newFlexiTyVarTy liftedTypeKind
tc_rhs rhs = do { ty <- newFlexiTyVarTy liftedTypeKind
; rhs' <- tcCmd env rhs ([], ty)
; rhs' <- tcCmd env rhs ([], ty)
; return (rhs', ty) }
; return (rhs', ty) }
...
...
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