summaryrefslogtreecommitdiff
path: root/compiler/GHC/Utils
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Utils')
-rw-r--r--compiler/GHC/Utils/Outputable.hs6
-rw-r--r--compiler/GHC/Utils/Outputable.hs-boot9
2 files changed, 3 insertions, 12 deletions
diff --git a/compiler/GHC/Utils/Outputable.hs b/compiler/GHC/Utils/Outputable.hs
index 4c5eedab34..fd065266d6 100644
--- a/compiler/GHC/Utils/Outputable.hs
+++ b/compiler/GHC/Utils/Outputable.hs
@@ -944,16 +944,16 @@ instance Outputable UTCTime where
ppr = text . formatShow iso8601Format
instance (Outputable a) => Outputable [a] where
- ppr xs = brackets (fsep (punctuate comma (map ppr xs)))
+ ppr xs = brackets (pprWithCommas ppr xs)
instance (Outputable a) => Outputable (NonEmpty a) where
ppr = ppr . NEL.toList
instance (Outputable a) => Outputable (Set a) where
- ppr s = braces (fsep (punctuate comma (map ppr (Set.toList s))))
+ ppr s = braces (pprWithCommas ppr (Set.toList s))
instance Outputable IntSet.IntSet where
- ppr s = braces (fsep (punctuate comma (map ppr (IntSet.toList s))))
+ ppr s = braces (pprWithCommas ppr (IntSet.toList s))
instance (Outputable a, Outputable b) => Outputable (a, b) where
ppr (x,y) = parens (sep [ppr x <> comma, ppr y])
diff --git a/compiler/GHC/Utils/Outputable.hs-boot b/compiler/GHC/Utils/Outputable.hs-boot
deleted file mode 100644
index e99b5e4f15..0000000000
--- a/compiler/GHC/Utils/Outputable.hs-boot
+++ /dev/null
@@ -1,9 +0,0 @@
-module GHC.Utils.Outputable where
-
-import GHC.Prelude
-
-data SDoc
-data PprStyle
-data SDocContext
-
-text :: String -> SDoc