[commit: ghc] master: Remove tyConString (5857dfb)

git at git.haskell.org git at git.haskell.org
Tue Jan 10 19:22:25 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/5857dfb8873eac6e682802524e2c2d9b96bb42f4/ghc

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

commit 5857dfb8873eac6e682802524e2c2d9b96bb42f4
Author: David Feuer <david.feuer at gmail.com>
Date:   Tue Jan 10 13:41:31 2017 -0500

    Remove tyConString
    
    `tyConString` has been deprecated since GHC 7.4. It's time for it to go.
    
    Reviewers: austin, hvr, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2950
    
    GHC Trac Issues: #13096


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

5857dfb8873eac6e682802524e2c2d9b96bb42f4
 libraries/base/Data/Typeable.hs          | 1 -
 libraries/base/Data/Typeable/Internal.hs | 8 +-------
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/libraries/base/Data/Typeable.hs b/libraries/base/Data/Typeable.hs
index 1afc6a9..d722519 100644
--- a/libraries/base/Data/Typeable.hs
+++ b/libraries/base/Data/Typeable.hs
@@ -68,7 +68,6 @@ module Data.Typeable
         TyCon,          -- abstract, instance of: Eq, Show, Typeable
                         -- For now don't export Module, to avoid name clashes
         tyConFingerprint,
-        tyConString,
         tyConPackage,
         tyConModule,
         tyConName,
diff --git a/libraries/base/Data/Typeable/Internal.hs b/libraries/base/Data/Typeable/Internal.hs
index e19854c..80b1717 100644
--- a/libraries/base/Data/Typeable/Internal.hs
+++ b/libraries/base/Data/Typeable/Internal.hs
@@ -38,7 +38,7 @@ module Data.Typeable.Internal (
 
     -- * TyCon
     TyCon,   -- Abstract
-    tyConPackage, tyConModule, tyConName, tyConString, tyConFingerprint,
+    tyConPackage, tyConModule, tyConName, tyConFingerprint,
     mkTyCon3, mkTyCon3#,
     rnfTyCon,
 
@@ -103,12 +103,6 @@ trNameString :: TrName -> String
 trNameString (TrNameS s) = unpackCString# s
 trNameString (TrNameD s) = s
 
--- | Observe string encoding of a type representation
-{-# DEPRECATED tyConString "renamed to 'tyConName'; 'tyConModule' and 'tyConPackage' are also available." #-}
--- deprecated in 7.4
-tyConString :: TyCon   -> String
-tyConString = tyConName
-
 tyConFingerprint :: TyCon -> Fingerprint
 tyConFingerprint (TyCon hi lo _ _)
   = Fingerprint (W64# hi) (W64# lo)



More information about the ghc-commits mailing list