summaryrefslogtreecommitdiff
path: root/compiler/GHC/Hs.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Hs.hs')
-rw-r--r--compiler/GHC/Hs.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Hs.hs b/compiler/GHC/Hs.hs
index 6c4a810b35..fcea4fc332 100644
--- a/compiler/GHC/Hs.hs
+++ b/compiler/GHC/Hs.hs
@@ -124,7 +124,7 @@ instance Outputable (HsModule GhcPs) where
Nothing -> pp_header (text "where")
Just es -> vcat [
pp_header lparen,
- nest 8 (fsep (punctuate comma (map ppr (unLoc es)))),
+ nest 8 (pprWithCommas ppr (unLoc es)),
nest 4 (text ") where")
],
pp_nonnull imports,