summaryrefslogtreecommitdiff
path: root/compiler/GHC/Parser/PostProcess.hs
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-09-16 17:40:51 +0200
committerKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-09-21 23:05:30 +0200
commiteb1e236fc6ff37c28cee4cf9a2966ee4a0c4c375 (patch)
treef7eb23e5426861da68eb0fac7a667f71684690f3 /compiler/GHC/Parser/PostProcess.hs
parent06ccad0de07026ea8128a9951f608bcc67ef23d8 (diff)
downloadhaskell-wip/outputable-cleanup.tar.gz
Minor refactor around Outputablewip/outputable-cleanup
* Replace 'text . show' and 'ppr' with 'int'. * Remove Outputable.hs-boot, no longer needed * Use pprWithCommas * Factor out instructions in AArch64 codegen
Diffstat (limited to 'compiler/GHC/Parser/PostProcess.hs')
-rw-r--r--compiler/GHC/Parser/PostProcess.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Parser/PostProcess.hs b/compiler/GHC/Parser/PostProcess.hs
index e0bf363f4b..928e7ce4aa 100644
--- a/compiler/GHC/Parser/PostProcess.hs
+++ b/compiler/GHC/Parser/PostProcess.hs
@@ -1691,7 +1691,7 @@ instance DisambECP (HsCmd GhcPs) where
mkHsWildCardPV l = cmdFail l (text "_")
mkHsTySigPV l a sig _ = cmdFail (locA l) (ppr a <+> text "::" <+> ppr sig)
mkHsExplicitListPV l xs _ = cmdFail l $
- brackets (fsep (punctuate comma (map ppr xs)))
+ brackets (pprWithCommas ppr xs)
mkHsSplicePV (L l sp) = cmdFail l (pprUntypedSplice True Nothing sp)
mkHsRecordPV _ l _ a (fbinds, ddLoc) _ = do
let (fs, ps) = partitionEithers fbinds