X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2FcoreSyn%2FPprCore.lhs;h=cb79cb449d7c98ff70c988c701e6f0f95ed9be9b;hb=d5934bbb856aa0aa620c9b2e0fa51c90a1a5a048;hp=8023b988f28928e0dad975b39c8145eca16bcc9e;hpb=49c98d143c382a1341e1046f5ca00819a25691ba;p=ghc-hetmet.git diff --git a/compiler/coreSyn/PprCore.lhs b/compiler/coreSyn/PprCore.lhs index 8023b98..cb79cb4 100644 --- a/compiler/coreSyn/PprCore.lhs +++ b/compiler/coreSyn/PprCore.lhs @@ -33,6 +33,7 @@ import BasicTypes import Util import Outputable import FastString +import Module \end{code} %************************************************************************ @@ -212,6 +213,21 @@ ppr_expr add_par (Note (SCC cc) expr) ppr_expr add_par (Note InlineMe expr) = add_par $ ptext SLIT("__inline_me") <+> pprParendExpr expr +ppr_expr add_par (Note (TickBox mod n) expr) + = add_par $ + sep [sep [ptext SLIT("__tick_box"), + pprModule mod, + text (show n)], + pprParendExpr expr] + +ppr_expr add_par (Note (BinaryTickBox mod t e) expr) + = add_par $ + sep [sep [ptext SLIT("__binary_tick_box"), + pprModule mod, + text (show t), + text (show e)], + pprParendExpr expr] + ppr_expr add_par (Note (CoreNote s) expr) = add_par $ sep [sep [ptext SLIT("__core_note"), pprHsString (mkFastString s)], @@ -354,10 +370,9 @@ pprRule (BuiltinRule { ru_fn = fn, ru_name = name}) pprRule (Rule { ru_name = name, ru_act = act, ru_fn = fn, ru_bndrs = tpl_vars, ru_args = tpl_args, ru_rhs = rhs }) - = doubleQuotes (ftext name) <+> ppr act <+> - sep [ - ptext SLIT("__forall") <+> braces (sep (map pprTypedBinder tpl_vars)), - nest 2 (ppr fn <+> sep (map pprArg tpl_args)), - nest 2 (ptext SLIT("=") <+> pprCoreExpr rhs) - ] <+> semi + = hang (doubleQuotes (ftext name) <+> ppr act) + 4 (sep [ptext SLIT("__forall") <+> braces (sep (map pprTypedBinder tpl_vars)), + nest 2 (ppr fn <+> sep (map pprArg tpl_args)), + nest 2 (ptext SLIT("=") <+> pprCoreExpr rhs) + ]) \end{code}