[commit: ghc] wip/ttypeable: Render TYPE 'PtrRepLifted as * (349481a)
git at git.haskell.org
git at git.haskell.org
Wed Apr 13 17:55:57 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/ttypeable
Link : http://ghc.haskell.org/trac/ghc/changeset/349481a4446922cfac24ab83c64a0aef3c450dc9/ghc
>---------------------------------------------------------------
commit 349481a4446922cfac24ab83c64a0aef3c450dc9
Author: Ben Gamari <ben at smart-cactus.org>
Date: Thu Mar 17 01:02:39 2016 +0100
Render TYPE 'PtrRepLifted as *
>---------------------------------------------------------------
349481a4446922cfac24ab83c64a0aef3c450dc9
libraries/base/Data/Typeable/Internal.hs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libraries/base/Data/Typeable/Internal.hs b/libraries/base/Data/Typeable/Internal.hs
index 2053adb..baedc64 100644
--- a/libraries/base/Data/Typeable/Internal.hs
+++ b/libraries/base/Data/Typeable/Internal.hs
@@ -320,6 +320,8 @@ typeRepXFingerprint (TypeRepX t) = typeRepFingerprint t
instance Show (TypeRep (a :: k)) where
showsPrec _ rep
+ | Just HRefl <- rep `eqTypeRep` (typeRep :: TypeRep *) =
+ showChar '*'
| isListTyCon tc, [ty] <- tys =
showChar '[' . shows ty . showChar ']'
| isTupleTyCon tc =
More information about the ghc-commits
mailing list