[commit: ghc] master: Make pprQuotedList use fsep not hsep (7721e8e)
git at git.haskell.org
git at git.haskell.org
Mon Sep 25 13:01:55 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/7721e8ee77780211a3ed4e8e5ba21bec8d54848d/ghc
>---------------------------------------------------------------
commit 7721e8ee77780211a3ed4e8e5ba21bec8d54848d
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Thu Sep 21 17:38:08 2017 +0100
Make pprQuotedList use fsep not hsep
This just does wrapping on very long lists
>---------------------------------------------------------------
7721e8ee77780211a3ed4e8e5ba21bec8d54848d
compiler/utils/Outputable.hs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler/utils/Outputable.hs b/compiler/utils/Outputable.hs
index d257e3e..c79cbc5 100644
--- a/compiler/utils/Outputable.hs
+++ b/compiler/utils/Outputable.hs
@@ -1019,7 +1019,7 @@ pprQuotedList :: Outputable a => [a] -> SDoc
pprQuotedList = quotedList . map ppr
quotedList :: [SDoc] -> SDoc
-quotedList xs = hsep (punctuate comma (map quotes xs))
+quotedList xs = fsep (punctuate comma (map quotes xs))
quotedListWithOr :: [SDoc] -> SDoc
-- [x,y,z] ==> `x', `y' or `z'
More information about the ghc-commits
mailing list