projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9ec3012
)
[project @ 2004-03-12 10:16:34 by simonmar]
author
simonmar
<unknown>
Fri, 12 Mar 2004 10:16:34 +0000
(10:16 +0000)
committer
simonmar
<unknown>
Fri, 12 Mar 2004 10:16:34 +0000
(10:16 +0000)
clean up pretty printing slightly
ghc/compiler/hsSyn/HsBinds.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/hsSyn/HsBinds.lhs
b/ghc/compiler/hsSyn/HsBinds.lhs
index
458a713
..
c473fd3
100644
(file)
--- a/
ghc/compiler/hsSyn/HsBinds.lhs
+++ b/
ghc/compiler/hsSyn/HsBinds.lhs
@@
-50,7
+50,10
@@
instance OutputableBndr id => Outputable (HsBindGroup id) where
ppr (HsBindGroup binds sigs is_rec)
= vcat [ppr_isrec,
vcat (map ppr sigs),
- pprLHsBinds binds
+ vcat (map ppr (bagToList binds))
+ -- *not* pprLHsBinds because we don't want braces; 'let' and
+ -- 'where' include a list of HsBindGroups and we don't want
+ -- several groups of bindings each with braces around.
]
where
ppr_isrec = getPprStyle $ \ sty ->