X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fspecialise%2FRules.lhs;h=b8b00ec45381c561e7159f7beb4e9e9757e4becc;hb=7d841483081735f5f906a6bb5e80249d97f3226b;hp=9e27df4a4b0c3b1f7629b40a822d285dfae7d027;hpb=2e95d5409279298a6c59492210001f468fcf47c3;p=ghc-hetmet.git diff --git a/ghc/compiler/specialise/Rules.lhs b/ghc/compiler/specialise/Rules.lhs index 9e27df4..b8b00ec 100644 --- a/ghc/compiler/specialise/Rules.lhs +++ b/ghc/compiler/specialise/Rules.lhs @@ -19,8 +19,9 @@ import CoreSyn -- All of it import OccurAnal ( occurAnalyseRule ) import CoreFVs ( exprFreeVars, ruleRhsFreeVars, ruleLhsFreeIds ) import CoreUnfold ( isCheapUnfolding, unfoldingTemplate ) +import CoreTidy ( tidyIdRules ) import CoreUtils ( eqExpr ) -import PprCore ( pprCoreRule ) +import PprCore ( pprIdRules ) import Subst ( Subst, InScopeSet, mkInScopeSet, lookupSubst, extendSubst, substEnv, setSubstEnv, emptySubst, isInScope, emptyInScopeSet, bindSubstList, unBindSubstList, substInScope, uniqAway @@ -629,7 +630,6 @@ extendRuleBase (RuleBase rule_ids rule_fvs) (id, rule) -- locally defined ones!! pprRuleBase :: RuleBase -> SDoc -pprRuleBase (RuleBase rules _) = vcat [ pprCoreRule (ppr id) rs - | id <- varSetElems rules, - rs <- rulesRules $ idSpecialisation id ] +pprRuleBase (RuleBase rules _) = vcat [ pprIdRules (tidyIdRules id) + | id <- varSetElems rules ] \end{code}