Skip to content
Snippets Groups Projects
Commit 72592f20 authored by sof's avatar sof
Browse files

[project @ 1997-09-04 20:21:13 by sof]

ppr wibble
parent 37e4d450
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
module PprCore ( module PprCore (
pprCoreExpr, pprIfaceUnfolding, pprCoreExpr, pprIfaceUnfolding,
pprCoreBinding, pprCoreBinding, pprCoreBindings,
pprBigCoreBinder, pprBigCoreBinder,
pprTypedCoreBinder pprTypedCoreBinder
...@@ -65,7 +65,8 @@ print something. ...@@ -65,7 +65,8 @@ print something.
@pprParendCoreExpr@ puts parens around non-atomic Core expressions. @pprParendCoreExpr@ puts parens around non-atomic Core expressions.
\begin{code} \begin{code}
pprCoreBinding :: PprStyle -> CoreBinding -> Doc pprCoreBinding :: PprStyle -> CoreBinding -> Doc
pprCoreBindings :: PprStyle -> [CoreBinding] -> Doc
pprGenCoreBinding pprGenCoreBinding
:: (Eq tyvar, Outputable tyvar, :: (Eq tyvar, Outputable tyvar,
...@@ -117,6 +118,8 @@ init_ppr_env sty tvbndr pbdr1 pbdr2 pocc ...@@ -117,6 +118,8 @@ init_ppr_env sty tvbndr pbdr1 pbdr2 pocc
| otherwise = ppr sty prim <> char '!' | otherwise = ppr sty prim <> char '!'
-------------- --------------
pprCoreBindings sty binds = vcat (map (pprCoreBinding sty) binds)
pprCoreBinding sty (NonRec binder expr) pprCoreBinding sty (NonRec binder expr)
= hang (hsep [pprBigCoreBinder sty binder, equals]) = hang (hsep [pprBigCoreBinder sty binder, equals])
4 (pprCoreExpr sty (pprBigCoreBinder sty) (pprBabyCoreBinder sty) (ppr sty) expr) 4 (pprCoreExpr sty (pprBigCoreBinder sty) (pprBabyCoreBinder sty) (ppr sty) expr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment