X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypecheck%2FInst.lhs;h=e1f3fb77940b1df7bec85b33abee48174065126d;hp=3a419be8f8ac59d331dc9e182362063a1c51a6db;hb=c80364f8e4681b34e974f5df36ecdacec7cd9cd8;hpb=9ba922ee06b048774d7a82964867ff768a78126e diff --git a/compiler/typecheck/Inst.lhs b/compiler/typecheck/Inst.lhs index 3a419be..e1f3fb7 100644 --- a/compiler/typecheck/Inst.lhs +++ b/compiler/typecheck/Inst.lhs @@ -473,11 +473,9 @@ hasEqualities :: [EvVar] -> Bool -- Has a bunch of canonical constraints (all givens) got any equalities in it? hasEqualities givens = any (has_eq . evVarPred) givens where - has_eq (EqPred {}) = True - has_eq (IParam {}) = False - has_eq (ClassP cls tys) = any has_eq (substTheta subst (classSCTheta cls)) - where - subst = zipOpenTvSubst (classTyVars cls) tys + has_eq (EqPred {}) = True + has_eq (IParam {}) = False + has_eq (ClassP cls _tys) = any has_eq (classSCTheta cls) ---------------- tyVarsOfWanteds :: WantedConstraints -> TyVarSet