projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99b4825
)
[project @ 2001-08-15 15:57:20 by simonmar]
author
simonmar
<unknown>
Wed, 15 Aug 2001 15:57:20 +0000
(15:57 +0000)
committer
simonmar
<unknown>
Wed, 15 Aug 2001 15:57:20 +0000
(15:57 +0000)
Don't print all the fields of a record on the same line
ghc/compiler/hsSyn/HsDecls.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/hsSyn/HsDecls.lhs
b/ghc/compiler/hsSyn/HsDecls.lhs
index
0b0c447
..
6d1befb
100644
(file)
--- a/
ghc/compiler/hsSyn/HsDecls.lhs
+++ b/
ghc/compiler/hsSyn/HsDecls.lhs
@@
-606,7
+606,7
@@
ppr_con_details con (VanillaCon tys)
= ppr con <+> hsep (map (ppr_bang) tys)
ppr_con_details con (RecCon fields)
- = ppr con <+> braces (hsep (punctuate comma (map ppr_field fields)))
+ = ppr con <+> braces (sep (punctuate comma (map ppr_field fields)))
where
ppr_field (ns, ty) = hsep (map (ppr) ns) <+>
dcolon <+>