[commit: ghc] wip/ttypeable: Message: Import Data.Typeable.TypeRep (b7ff4de)

git at git.haskell.org git at git.haskell.org
Fri Jul 8 14:30:39 UTC 2016


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

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

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

commit b7ff4dec49c8ef31a6151a4833b388305df06a6c
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Wed Mar 16 10:35:59 2016 +0100

    Message: Import Data.Typeable.TypeRep


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

b7ff4dec49c8ef31a6151a4833b388305df06a6c
 libraries/ghci/GHCi/Message.hs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libraries/ghci/GHCi/Message.hs b/libraries/ghci/GHCi/Message.hs
index b14fca4..342c035 100644
--- a/libraries/ghci/GHCi/Message.hs
+++ b/libraries/ghci/GHCi/Message.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE GADTs, DeriveGeneric, StandaloneDeriving,
+{-# LANGUAGE GADTs, DeriveGeneric, StandaloneDeriving, CPP,
     GeneralizedNewtypeDeriving, ExistentialQuantification, RecordWildCards #-}
 {-# OPTIONS_GHC -fno-warn-name-shadowing -fno-warn-orphans #-}
 
@@ -37,6 +37,10 @@ import Data.ByteString (ByteString)
 import qualified Data.ByteString as B
 import qualified Data.ByteString.Lazy as LB
 import Data.Dynamic
+#if MIN_VERSION_base(4,9,0)
+-- Previously this was re-exported by Data.Dynamic
+import Data.Typeable (TypeRep)
+#endif
 import Data.IORef
 import Data.Map (Map)
 import GHC.Generics



More information about the ghc-commits mailing list