[commit: packages/base] master: Make `<Typeable.h>` obsolete and refactor away its use (57b5310)
git at git.haskell.org
git at git.haskell.org
Tue Sep 17 10:42:16 CEST 2013
Repository : ssh://git@git.haskell.org/base
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/57b53105329ba2e6ba2b6f02e48ff39e753f65ab/base
>---------------------------------------------------------------
commit 57b53105329ba2e6ba2b6f02e48ff39e753f65ab
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Sun Sep 15 23:49:32 2013 +0200
Make `<Typeable.h>` obsolete and refactor away its use
With GHC 7.8's PolyKinds the macros in `<Typeable.h>` are no longer of any
use, and their use is clearly obsolete. The sites using those macros are
replaced by auto-derivations of `Typeable` instances.
This reduces reliance on the CPP extension and the compile dependency on
`Typeable.h` in a couple of modules.
Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>
>---------------------------------------------------------------
57b53105329ba2e6ba2b6f02e48ff39e753f65ab
Control/Concurrent/Chan.hs | 6 +---
Control/Exception/Base.hs | 25 +++++--------
Control/Monad/ST/Imp.hs | 3 --
Data/Complex.hs | 7 ++--
Data/Data.hs | 5 +--
Data/Dynamic.hs | 7 ++--
Data/Either.hs | 6 +---
Data/Typeable/Internal.hs | 86 ++++++++++++++++++--------------------------
Foreign/C/Types.hs | 50 +++++++++++++-------------
Foreign/Ptr.hs | 4 +--
GHC/Conc.lhs | 2 --
GHC/Conc/IO.hs | 2 --
GHC/Conc/Sync.lhs | 8 ++---
GHC/ForeignPtr.hs | 8 ++---
GHC/Weak.lhs | 8 ++---
System/Mem/StableName.hs | 5 +--
System/Posix/Types.hs | 28 +++++++--------
System/Timeout.hs | 5 +--
include/CTypes.h | 24 +++++--------
include/Typeable.h | 2 ++
20 files changed, 109 insertions(+), 182 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 57b53105329ba2e6ba2b6f02e48ff39e753f65ab
More information about the ghc-commits
mailing list