[commit: base] new-typeable: Restore this deprecated function (34c4648)
José Pedro Magalhães <[email protected]> Wed, 26 Sep 2012 06:09:01 -0700
| Newsgroups | gmane.comp.lang.haskell.cvs.libraries |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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