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