summaryrefslogtreecommitdiff
path: root/compiler/GHC/Iface/Ext
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/Iface/Ext
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/Iface/Ext')
-rw-r--r--compiler/GHC/Iface/Ext/Binary.hs2
-rw-r--r--compiler/GHC/Iface/Ext/Types.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Iface/Ext/Binary.hs b/compiler/GHC/Iface/Ext/Binary.hs
index 1e2e4f7127..86dc042e63 100644
--- a/compiler/GHC/Iface/Ext/Binary.hs
+++ b/compiler/GHC/Iface/Ext/Binary.hs
@@ -331,7 +331,7 @@ fromHieName nc hie_name = do
KnownKeyName u -> case lookupKnownKeyName u of
Nothing -> pprPanic "fromHieName:unknown known-key unique"
- (ppr (unpkUnique u))
+ (ppr u)
Just n -> pure n
-- ** Reading and writing `HieName`'s
diff --git a/compiler/GHC/Iface/Ext/Types.hs b/compiler/GHC/Iface/Ext/Types.hs
index a0a8a41ece..44619808af 100644
--- a/compiler/GHC/Iface/Ext/Types.hs
+++ b/compiler/GHC/Iface/Ext/Types.hs
@@ -774,7 +774,7 @@ hieNameOcc (KnownKeyName u) =
case lookupKnownKeyName u of
Just n -> nameOccName n
Nothing -> pprPanic "hieNameOcc:unknown known-key unique"
- (ppr (unpkUnique u))
+ (ppr u)
toHieName :: Name -> HieName
toHieName name