[project @ 2004-03-11 14:29:29 by simonpj]
authorsimonpj <unknown>
Thu, 11 Mar 2004 14:29:29 +0000 (14:29 +0000)
committersimonpj <unknown>
Thu, 11 Mar 2004 14:29:29 +0000 (14:29 +0000)
Better layout in interppSP

ghc/compiler/utils/Outputable.lhs

index 339a3bc..76c91d4 100644 (file)
@@ -414,10 +414,10 @@ pprWithCommas :: (a -> SDoc) -> [a] -> SDoc
 pprWithCommas pp xs = fsep (punctuate comma (map pp xs))
 
 interppSP  :: Outputable a => [a] -> SDoc
-interppSP  xs = hsep (map ppr xs)
+interppSP  xs = sep (map ppr xs)
 
 interpp'SP :: Outputable a => [a] -> SDoc
-interpp'SP xs = hsep (punctuate comma (map ppr xs))
+interpp'SP xs = sep (punctuate comma (map ppr xs))
 
 pprQuotedList :: Outputable a => [a] -> SDoc
 -- [x,y,z]  ==>  `x', `y', `z'