Constant-fold `__GLASGOW_HASKELL__` CPP conditionals
authorHerbert Valerio Riedel <hvr@gnu.org>
Sun, 15 Sep 2013 21:05:05 +0000 (23:05 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Tue, 17 Sep 2013 07:54:07 +0000 (09:54 +0200)
commit0f5eae0232a86ec57d841a83e6929361e2751270
tree7cc7b87fce8238cd9ff6b65fb0c37f515191aa6e
parent43ece172e7045d5ba633be6193f3e908eaa81f00
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 removes redundant `{-# LANGUAGE CPP #-}`.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
101 files changed:
libraries/base/Control/Applicative.hs
libraries/base/Control/Category.hs
libraries/base/Control/Concurrent.hs
libraries/base/Control/Concurrent/Chan.hs
libraries/base/Control/Concurrent/MVar.hs
libraries/base/Control/Concurrent/QSem.hs
libraries/base/Control/Concurrent/QSemN.hs
libraries/base/Control/Exception.hs
libraries/base/Control/Exception/Base.hs
libraries/base/Control/Monad.hs
libraries/base/Control/Monad/Fix.hs
libraries/base/Control/Monad/ST/Imp.hs
libraries/base/Control/Monad/ST/Lazy/Imp.hs
libraries/base/Data/Bits.hs
libraries/base/Data/Bool.hs
libraries/base/Data/Char.hs
libraries/base/Data/Complex.hs
libraries/base/Data/Data.hs
libraries/base/Data/Dynamic.hs
libraries/base/Data/Either.hs
libraries/base/Data/Eq.hs
libraries/base/Data/Fixed.hs
libraries/base/Data/Foldable.hs
libraries/base/Data/Functor.hs
libraries/base/Data/IORef.hs
libraries/base/Data/Int.hs
libraries/base/Data/Ix.hs
libraries/base/Data/List.hs
libraries/base/Data/Maybe.hs
libraries/base/Data/Monoid.hs
libraries/base/Data/OldTypeable.hs
libraries/base/Data/OldTypeable/Internal.hs
libraries/base/Data/Ord.hs
libraries/base/Data/Proxy.hs
libraries/base/Data/Ratio.hs
libraries/base/Data/STRef.hs
libraries/base/Data/String.hs
libraries/base/Data/Traversable.hs
libraries/base/Data/Tuple.hs
libraries/base/Data/Typeable.hs
libraries/base/Data/Typeable/Internal.hs
libraries/base/Data/Unique.hs
libraries/base/Data/Version.hs
libraries/base/Data/Word.hs
libraries/base/Debug/Trace.hs
libraries/base/Foreign/C/Error.hs
libraries/base/Foreign/C/String.hs
libraries/base/Foreign/C/Types.hs
libraries/base/Foreign/Concurrent.hs
libraries/base/Foreign/ForeignPtr.hs
libraries/base/Foreign/ForeignPtr/Imp.hs
libraries/base/Foreign/ForeignPtr/Safe.hs
libraries/base/Foreign/ForeignPtr/Unsafe.hs
libraries/base/Foreign/Marshal.hs
libraries/base/Foreign/Marshal/Alloc.hs
libraries/base/Foreign/Marshal/Array.hs
libraries/base/Foreign/Marshal/Error.hs
libraries/base/Foreign/Marshal/Pool.hs
libraries/base/Foreign/Marshal/Safe.hs
libraries/base/Foreign/Marshal/Unsafe.hs
libraries/base/Foreign/Marshal/Utils.hs
libraries/base/Foreign/Ptr.hs
libraries/base/Foreign/StablePtr.hs
libraries/base/Foreign/Storable.hs
libraries/base/GHC/Constants.hs
libraries/base/GHC/Desugar.hs
libraries/base/GHC/Err.lhs
libraries/base/GHC/Foreign.hs
libraries/base/GHC/IO/Device.hs
libraries/base/GHC/IO/Encoding/UTF16.hs
libraries/base/GHC/Read.lhs
libraries/base/Numeric.hs
libraries/base/Prelude.hs
libraries/base/System/CPUTime.hsc
libraries/base/System/Environment.hs
libraries/base/System/Exit.hs
libraries/base/System/IO.hs
libraries/base/System/IO/Error.hs
libraries/base/System/IO/Unsafe.hs
libraries/base/System/Info.hs
libraries/base/System/Mem.hs
libraries/base/System/Mem/StableName.hs
libraries/base/System/Mem/Weak.hs
libraries/base/System/Posix/Internals.hs
libraries/base/System/Posix/Types.hs
libraries/base/System/Timeout.hs
libraries/base/Text/ParserCombinators/ReadP.hs
libraries/base/Text/ParserCombinators/ReadPrec.hs
libraries/base/Text/Printf.hs
libraries/base/Text/Read.hs
libraries/base/Text/Read/Lex.hs
libraries/base/Text/Show.hs
libraries/base/Text/Show/Functions.hs
libraries/base/Unsafe/Coerce.hs
libraries/base/include/CTypes.h
libraries/base/include/HsBase.h
libraries/base/include/OldTypeable.h
libraries/base/include/Typeable.h
libraries/base/tests/IO/hSeek001.hs
libraries/base/tests/qsem001.hs
libraries/base/tests/qsemn001.hs