Fix small but egregious error: using un-zonked constraints in simplifyRule
authorsimonpj@microsoft.com <unknown>
Fri, 11 Feb 2011 17:38:35 +0000 (17:38 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 11 Feb 2011 17:38:35 +0000 (17:38 +0000)
This resulted in double unifications.  Fix is trivial.

compiler/typecheck/TcSimplify.lhs

index e25f510..5fc6a5b 100644 (file)
@@ -523,7 +523,7 @@ simplifyRule name tv_bndrs lhs_wanted rhs_wanted
 
        ; (lhs_results, lhs_binds)
               <- runTcS SimplRuleLhs untch $
-                 solveWanteds emptyInert lhs_wanted
+                 solveWanteds emptyInert zonked_lhs
 
        ; traceTc "simplifyRule" $
          vcat [ text "zonked_lhs"   <+> ppr zonked_lhs