summaryrefslogtreecommitdiff
path: root/compiler/utils
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2017-09-21 17:38:08 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2017-09-25 11:07:23 +0100
commit7721e8ee77780211a3ed4e8e5ba21bec8d54848d (patch)
tree0a4eb96e770e748c53238593280847a244144c2e /compiler/utils
parent3c74a51232813eb733b27c43c94ce005112a0ddb (diff)
downloadhaskell-7721e8ee77780211a3ed4e8e5ba21bec8d54848d.tar.gz
Make pprQuotedList use fsep not hsep
This just does wrapping on very long lists
Diffstat (limited to 'compiler/utils')
-rw-r--r--compiler/utils/Outputable.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/utils/Outputable.hs b/compiler/utils/Outputable.hs
index d257e3ec9f..c79cbc5551 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'