X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcRules.lhs;h=db7c805caa8036a7d148a60ca510d0b818cf7e5c;hp=28be06e05fd8beaced14bdb74d129e7df93cd0b7;hb=ad94d40948668032189ad22a0ad741ac1f645f50;hpb=2423c249f5ca7785d0ec89eb33e72662da7561c1 diff --git a/compiler/typecheck/TcRules.lhs b/compiler/typecheck/TcRules.lhs index 28be06e..db7c805 100644 --- a/compiler/typecheck/TcRules.lhs +++ b/compiler/typecheck/TcRules.lhs @@ -6,6 +6,13 @@ TcRules: Typechecking transformation rules \begin{code} +{-# OPTIONS -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings +-- for details + module TcRules ( tcRules ) where #include "HsVersions.h" @@ -82,11 +89,9 @@ tcRule (HsRule name act vars lhs fv_lhs rhs fv_rhs) tcSimplifyInferCheck loc forall_tvs lhs_dicts rhs_lie `thenM` \ (forall_tvs1, rhs_binds) -> - 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 + (map (RuleBndr . noLoc) (forall_tvs1 ++ tpl_ids)) -- yuk (mkHsDictLet lhs_binds lhs') fv_lhs (mkHsDictLet rhs_binds rhs') fv_rhs)