projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a10a21d
)
Use eqSpecPreds
author
Simon Peyton Jones
<simonpj@microsoft.com>
Fri, 6 May 2011 14:34:09 +0000
(15:34 +0100)
committer
Simon Peyton Jones
<simonpj@microsoft.com>
Fri, 6 May 2011 14:34:09 +0000
(15:34 +0100)
compiler/typecheck/TcPat.lhs
patch
|
blob
|
history
diff --git
a/compiler/typecheck/TcPat.lhs
b/compiler/typecheck/TcPat.lhs
index
2501225
..
c860bfe
100644
(file)
--- a/
compiler/typecheck/TcPat.lhs
+++ b/
compiler/typecheck/TcPat.lhs
@@
-695,8
+695,7
@@
tcConPat penv (L con_span con_name) pat_ty arg_pats thing_inside
else do -- The general case, with existential,
-- and local equality constraints
- { let eq_preds = [mkEqPred (mkTyVarTy tv, ty) | (tv, ty) <- eq_spec]
- theta' = substTheta tenv (eq_preds ++ theta)
+ { let theta' = substTheta tenv (eqSpecPreds eq_spec ++ theta)
-- order is *important* as we generate the list of
-- dictionary binders from theta'
no_equalities = not (any isEqPred theta')