summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc/Deriv.hs
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-09-06 17:14:41 +0200
committerKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-09-06 18:23:04 +0200
commit780ad28f2f064c1e4105b151c184ff1206833695 (patch)
treecc5475103ec5ae7abe0f1e6f4093fcd0d58bdf42 /compiler/GHC/Tc/Deriv.hs
parent6560d4416ec1dc8a25c842523c7ae83c271b9315 (diff)
downloadhaskell-wip/cleanup-outputable.tar.gz
Remove Outputable Char instancewip/cleanup-outputable
Use 'text' instead of 'ppr'. Using 'ppr' on the list "hello" rendered as "h,e,l,l,o".
Diffstat (limited to 'compiler/GHC/Tc/Deriv.hs')
-rw-r--r--compiler/GHC/Tc/Deriv.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Tc/Deriv.hs b/compiler/GHC/Tc/Deriv.hs
index 7df65bd367..f12fefcffe 100644
--- a/compiler/GHC/Tc/Deriv.hs
+++ b/compiler/GHC/Tc/Deriv.hs
@@ -1926,7 +1926,7 @@ genFamInsts spec@(DS { ds_tvs = tyvars, ds_mechanism = mechanism
-- canDeriveAnyClass should ensure that this code can't be reached
-- unless -XDeriveAnyClass is enabled.
assertPpr (xopt LangExt.DeriveAnyClass dflags)
- (ppr "genFamInsts: bad derived class" <+> ppr clas) $
+ (text "genFamInsts: bad derived class" <+> ppr clas) $
mapM (tcATDefault loc mini_subst emptyNameSet)
(classATItems clas)
pure $ concat tyfam_insts