[project @ 2001-08-15 15:57:20 by simonmar]
authorsimonmar <unknown>
Wed, 15 Aug 2001 15:57:20 +0000 (15:57 +0000)
committersimonmar <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

index 0b0c447..6d1befb 100644 (file)
@@ -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 <+>