X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftypecheck%2FTcRules.lhs;h=d041fc946c66be20d545034f51d958ca73c90fb8;hb=2b09da898f6f208ab6407aa5507fb11cf24a562e;hp=1566e44204a326e6fb1d87866c1d3b68ddd1dee4;hpb=8731605fb5978844ef63433133fce9e43f7022bf;p=ghc-hetmet.git diff --git a/ghc/compiler/typecheck/TcRules.lhs b/ghc/compiler/typecheck/TcRules.lhs index 1566e44..d041fc9 100644 --- a/ghc/compiler/typecheck/TcRules.lhs +++ b/ghc/compiler/typecheck/TcRules.lhs @@ -133,9 +133,9 @@ tcSourceRule (HsRule name sig_tvs vars lhs rhs src_loc) where sig_tys = [t | RuleBndrSig _ t <- vars] - new_id (RuleBndr var) = newTyVarTy openTypeKind `thenNF_Tc` \ ty -> + new_id (RuleBndr var) = newTyVarTy openTypeKind `thenNF_Tc` \ ty -> returnNF_Tc (mkLocalId var ty) - new_id (RuleBndrSig var rn_ty) = tcHsSigType PatSigCtxt rn_ty `thenTc` \ ty -> + new_id (RuleBndrSig var rn_ty) = tcHsSigType (RuleSigCtxt var) rn_ty `thenTc` \ ty -> returnNF_Tc (mkLocalId var ty) ruleCtxt name = ptext SLIT("When checking the transformation rule") <+>