[commit: ghc] master: Remove deprecated libraries/base/include/Typeable.h (e22282e)

git at git.haskell.org git at git.haskell.org
Tue Feb 10 14:01:42 UTC 2015


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

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

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

commit e22282e5d2a370395535df4051bdeb8213106d1c
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Mon Feb 9 13:42:53 2015 -0600

    Remove deprecated libraries/base/include/Typeable.h
    
    Test Plan: I grepped for other references, there were none.
    
    Reviewers: ekmett, hvr, austin
    
    Reviewed By: austin
    
    Subscribers: ekmett, thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D483


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

e22282e5d2a370395535df4051bdeb8213106d1c
 libraries/base/base.cabal         |  1 -
 libraries/base/include/Typeable.h | 31 -------------------------------
 2 files changed, 32 deletions(-)

diff --git a/libraries/base/base.cabal b/libraries/base/base.cabal
index 70d719f..f133fbe 100644
--- a/libraries/base/base.cabal
+++ b/libraries/base/base.cabal
@@ -322,7 +322,6 @@ Library
         HsBase.h
         WCsubst.h
         consUtils.h
-        Typeable.h
 
     -- OS Specific
     if os(windows)
diff --git a/libraries/base/include/Typeable.h b/libraries/base/include/Typeable.h
deleted file mode 100644
index 1a31498..0000000
--- a/libraries/base/include/Typeable.h
+++ /dev/null
@@ -1,31 +0,0 @@
-{- --------------------------------------------------------------------------
-// Macros to help make Typeable instances.
-//
-// INSTANCE_TYPEABLEn(tc,tcname,"tc") defines
-//
-//	instance Typeable/n/ tc
-//	instance Typeable a => Typeable/n-1/ (tc a)
-//	instance (Typeable a, Typeable b) => Typeable/n-2/ (tc a b)
-//	...
-//	instance (Typeable a1, ..., Typeable an) => Typeable (tc a1 ... an)
-// --------------------------------------------------------------------------
--}
-
-#ifndef TYPEABLE_H
-#define TYPEABLE_H
-
-#warning <Typeable.h> is obsolete and will be removed in GHC 7.10
-
---  // For GHC, we can use DeriveDataTypeable + StandaloneDeriving to
---  // generate the instances.
-
-#define INSTANCE_TYPEABLE0(tycon,tcname,str) deriving instance Typeable tycon
-#define INSTANCE_TYPEABLE1(tycon,tcname,str) deriving instance Typeable tycon
-#define INSTANCE_TYPEABLE2(tycon,tcname,str) deriving instance Typeable tycon
-#define INSTANCE_TYPEABLE3(tycon,tcname,str) deriving instance Typeable tycon
-#define INSTANCE_TYPEABLE4(tycon,tcname,str) deriving instance Typeable tycon
-#define INSTANCE_TYPEABLE5(tycon,tcname,str) deriving instance Typeable tycon
-#define INSTANCE_TYPEABLE6(tycon,tcname,str) deriving instance Typeable tycon
-#define INSTANCE_TYPEABLE7(tycon,tcname,str) deriving instance Typeable tycon
-
-#endif



More information about the ghc-commits mailing list