[commit: ghc] wip/generalized-arrow: Message: Import Data.Typeable.TypeRep (6e9eaff)

git at git.haskell.org git at git.haskell.org
Mon Mar 21 17:10:49 UTC 2016


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

On branch  : wip/generalized-arrow
Link       : http://ghc.haskell.org/trac/ghc/changeset/6e9eaffe919ea16c1be2685f499994c2e5c354ce/ghc

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

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

    Message: Import Data.Typeable.TypeRep


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

6e9eaffe919ea16c1be2685f499994c2e5c354ce
 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 b8f9fcc..4bc8d2c 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 #-}
 
@@ -29,6 +29,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