[commit: ghc] wip/ttypeable: Make TRApp bidirectional (30301c6)

git at git.haskell.org git at git.haskell.org
Sat Oct 1 21:35:25 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/ttypeable
Link       : http://ghc.haskell.org/trac/ghc/changeset/30301c6d6cd640b8a1426e9263d0758b40a7f27c/ghc

>---------------------------------------------------------------

commit 30301c6d6cd640b8a1426e9263d0758b40a7f27c
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sun Jul 10 10:51:23 2016 +0200

    Make TRApp bidirectional


>---------------------------------------------------------------

30301c6d6cd640b8a1426e9263d0758b40a7f27c
 libraries/base/Data/Typeable/Internal.hs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libraries/base/Data/Typeable/Internal.hs b/libraries/base/Data/Typeable/Internal.hs
index 25c7399..8213c12 100644
--- a/libraries/base/Data/Typeable/Internal.hs
+++ b/libraries/base/Data/Typeable/Internal.hs
@@ -247,6 +247,7 @@ pattern TRApp :: forall k2 (t :: k2). ()
               => forall k1 (a :: k1 -> k2) (b :: k1). (t ~ a b)
               => TypeRep a -> TypeRep b -> TypeRep t
 pattern TRApp f x <- TrApp _ f x
+  where TRApp f x = mkTrApp f x
 
 -- | Use a 'TypeRep' as 'Typeable' evidence.
 withTypeable :: forall a r. TypeRep a -> (Typeable a => r) -> r



More information about the ghc-commits mailing list