X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FcoreSyn%2FPprCore.lhs;h=bed901bbd3b750251b4f1080cc222eef88ff2a6a;hb=2ecf1c9f639dc75f1078e88c2e551116923f742a;hp=184d95f4b44d28258a02f5e51f91b2020c12fa31;hpb=aa44169c3c01243cdbf38f50f58e80477586552c;p=ghc-hetmet.git diff --git a/ghc/compiler/coreSyn/PprCore.lhs b/ghc/compiler/coreSyn/PprCore.lhs index 184d95f..bed901b 100644 --- a/ghc/compiler/coreSyn/PprCore.lhs +++ b/ghc/compiler/coreSyn/PprCore.lhs @@ -12,7 +12,7 @@ module PprCore ( pprCoreExpr, pprParendExpr, pprCoreBinding, pprCoreBindings, pprIdBndr, pprCoreBinding, pprCoreBindings, - pprCoreRules, pprCoreRule + pprCoreRules, pprCoreRule, pprIdCoreRule ) where #include "HsVersions.h" @@ -361,6 +361,9 @@ ppIdInfo b info pprCoreRules :: Id -> CoreRules -> SDoc pprCoreRules var (Rules rules _) = vcat (map (pprCoreRule (ppr var)) rules) +pprIdCoreRule :: IdCoreRule -> SDoc +pprIdCoreRule (id,rule) = pprCoreRule (ppr id) rule + pprCoreRule :: SDoc -> CoreRule -> SDoc pprCoreRule pp_fn (BuiltinRule _) = ifPprDebug (ptext SLIT("A built in rule"))