projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bba9864
)
[project @ 2005-12-19 11:00:40 by simonpj]
author
simonpj
<unknown>
Mon, 19 Dec 2005 11:00:40 +0000
(11:00 +0000)
committer
simonpj
<unknown>
Mon, 19 Dec 2005 11:00:40 +0000
(11:00 +0000)
Tiny fix to patterns with type sigs
ghc/compiler/typecheck/TcPat.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/typecheck/TcPat.lhs
b/ghc/compiler/typecheck/TcPat.lhs
index
9c466ce
..
69c5666
100644
(file)
--- a/
ghc/compiler/typecheck/TcPat.lhs
+++ b/
ghc/compiler/typecheck/TcPat.lhs
@@
-250,7
+250,7
@@
tc_pat ctxt (SigPatIn pat sig) pat_ty thing_inside
<- tcExtendTyVarEnv2 tv_binds $
tcPat ctxt pat (Check sig_ty') thing_inside
- ; return (SigPatOut pat' sig_ty, tvs, res) }
+ ; return (SigPatOut pat' sig_ty', tvs, res) }
tc_pat ctxt pat@(TypePat ty) pat_ty thing_inside
= failWithTc (badTypePat pat)