X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FcoreSyn%2FPprCore.lhs;h=0e3b82d307e817a642ca65cc03d1c42fe9d7bd95;hp=864f4bdcb021d2d556a182b1d1115326cff96d67;hb=f2dcf256399e9a2de6343c625630b51f8abf4863;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1 diff --git a/compiler/coreSyn/PprCore.lhs b/compiler/coreSyn/PprCore.lhs index 864f4bd..0e3b82d 100644 --- a/compiler/coreSyn/PprCore.lhs +++ b/compiler/coreSyn/PprCore.lhs @@ -232,9 +232,6 @@ ppr_expr add_par (Note (Coerce to_ty from_ty) expr) pprParendExpr expr] #endif -ppr_expr add_par (Note InlineCall expr) - = add_par (ptext SLIT("__inline_call") <+> pprParendExpr expr) - ppr_expr add_par (Note InlineMe expr) = add_par $ ptext SLIT("__inline_me") <+> pprParendExpr expr @@ -279,8 +276,13 @@ pprCoreBinder LetBind binder -- Lambda bound type variables are preceded by "@" pprCoreBinder LambdaBind bndr = parens (pprTypedBinder bndr) --- Case bound things don't get a signature or a herald -pprCoreBinder CaseBind bndr = pprUntypedBinder bndr +-- Case bound things don't get a signature or a herald, unless we have debug on +pprCoreBinder CaseBind bndr + = getPprStyle $ \ sty -> + if debugStyle sty then + parens (pprTypedBinder bndr) + else + pprUntypedBinder bndr pprUntypedBinder binder | isTyVar binder = ptext SLIT("@") <+> ppr binder -- NB: don't print kind @@ -319,7 +321,7 @@ pprIdBndrInfo info doc | no_info = empty | otherwise - = brackets $ hcat [ppr prag_info, ppr occ_info, + = brackets $ hsep [ppr prag_info, ppr occ_info, ppr dmd_info, ppr lbv_info #ifdef OLD_STRICTNESS , ppr (demandInfo id)