[commit: packages/array] master: Constant-fold `__GLASGOW_HASKELL__` CPP conditionals (80dd8ea)

git at git.haskell.org git at git.haskell.org
Tue Sep 17 10:40:50 CEST 2013


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

On branch  : master
Link       : http://git.haskell.org/?p=packages/array.git;a=commit;h=80dd8ea03285fa48c807f09153da24f0aa7dac30

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

commit 80dd8ea03285fa48c807f09153da24f0aa7dac30
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Tue Sep 17 09:50:37 2013 +0200

    Constant-fold `__GLASGOW_HASKELL__` CPP conditionals
    
    Now that HUGS and NHC specific code has been removed, this commit
    "folds" the now redundant `#if((n)def)`s containing
    `__GLASGOW_HASKELL__`.  This renders `base` officially GHC only.
    
    This commit also inlines the `INSTANCE_TYPEABLE` macros and removes the
    now superflous local `include/Typeable.h` header.
    
    Finally, the `array.cabal` file is updated as well to remove the now
    superflous conditionals.
    
    Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>


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

80dd8ea03285fa48c807f09153da24f0aa7dac30
 Data/Array.hs              |    2 --
 Data/Array/Base.hs         |   75 ++------------------------------------------
 Data/Array/IO.hs           |   46 ---------------------------
 Data/Array/IO/Internals.hs |   12 +------
 Data/Array/ST.hs           |    2 --
 array.cabal                |   39 ++++++++++-------------
 include/Typeable.h         |   59 ----------------------------------
 7 files changed, 20 insertions(+), 215 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 80dd8ea03285fa48c807f09153da24f0aa7dac30



More information about the ghc-commits mailing list