More refactoring of constraint simplification
[ghc-hetmet.git] / compiler / typecheck / TcRules.lhs
index 0a2babe..28be06e 100644 (file)
@@ -82,8 +82,8 @@ tcRule (HsRule name act vars lhs fv_lhs rhs fv_rhs)
     tcSimplifyInferCheck loc
                         forall_tvs
                         lhs_dicts rhs_lie      `thenM` \ (forall_tvs1, rhs_binds) ->
-    mappM zonkQuantifiedTyVar forall_tvs1      `thenM` \ forall_tvs2 ->
-       -- This zonk is exactly the same as the one in TcBinds.tcBindWithSigs
+    zonkQuantifiedTyVars forall_tvs1           `thenM` \ forall_tvs2 ->
+       -- This zonk is exactly the same as the one in TcBinds.generalise
 
     returnM (HsRule name act
                    (map (RuleBndr . noLoc) (forall_tvs2 ++ tpl_ids))   -- yuk