[commit: base] new-typeable: Restore this deprecated function (34c4648)
José Pedro Magalhães
jpm at cs.uu.nl
Wed Sep 26 15:09:01 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/base
On branch : new-typeable
http://hackage.haskell.org/trac/ghc/changeset/34c4648a6a7173cdace96057920b3873f0f16eb0
>---------------------------------------------------------------
commit 34c4648a6a7173cdace96057920b3873f0f16eb0
Author: Jose Pedro Magalhaes <jpm at cs.ox.ac.uk>
Date: Wed Sep 26 12:58:52 2012 +0100
Restore this deprecated function
>---------------------------------------------------------------
Data/Typeable/Internal.hs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Data/Typeable/Internal.hs b/Data/Typeable/Internal.hs
index a31d329..49ac80b 100644
--- a/Data/Typeable/Internal.hs
+++ b/Data/Typeable/Internal.hs
@@ -178,6 +178,11 @@ typeRepTyCon (TypeRep _ tc _) = tc
typeRepArgs :: TypeRep -> [TypeRep]
typeRepArgs (TypeRep _ _ args) = args
+-- | Observe string encoding of a type representation
+{-# DEPRECATED tyConString "renamed to tyConName; tyConModule and tyConPackage are also available." #-}
+tyConString :: TyCon -> String
+tyConString = tyConName
+
-------------------------------------------------------------
--
-- The Typeable class and friends
More information about the Cvs-libraries
mailing list