summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-09-16 17:40:51 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-09-22 09:26:05 -0400
commit615e22789a04e74d7e02239b4580b95b077c3ae0 (patch)
tree01ddd6e717b2f4dc2e17ac293546dd8a1a781ab8 /compiler/GHC/Tc
parent9034fadaf641c3821db6e066faaf1a62ed236c13 (diff)
downloadhaskell-615e22789a04e74d7e02239b4580b95b077c3ae0.tar.gz
Minor refactor around Outputable
* 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/Tc')
-rw-r--r--compiler/GHC/Tc/Errors/Hole.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/GHC/Tc/Errors/Hole.hs b/compiler/GHC/Tc/Errors/Hole.hs
index 5254fc4616..14c0e029e6 100644
--- a/compiler/GHC/Tc/Errors/Hole.hs
+++ b/compiler/GHC/Tc/Errors/Hole.hs
@@ -489,8 +489,7 @@ addHoleFitDocs fits =
{ let warning =
text "WARNING: Couldn't find any documentation for the following modules:" $+$
nest 2
- (fsep (punctuate comma
- (either text ppr <$> Set.toList mods)) $+$
+ (pprWithCommas (either text ppr) (Set.toList mods) $+$
text "Make sure the modules are compiled with '-haddock'.")
; warnPprTrace (not $ Set.null mods)"addHoleFitDocs" warning (pure ())
}