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

git at git.haskell.org git at git.haskell.org
Sat Oct 1 21:33:58 UTC 2016


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

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

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

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

    Message: Import Data.Typeable.TypeRep


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

709b9233d086b4080bb859239cfba963c868877d
 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 4d0417e..b5558be 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