Remove from `base` obsolete CPP for `integer-gmp`
authorAlec Theriault <alec.theriault@gmail.com>
Tue, 8 Jan 2019 18:41:50 +0000 (10:41 -0800)
committerBen Gamari <ben@smart-cactus.org>
Wed, 16 Jan 2019 19:17:11 +0000 (14:17 -0500)
commitf7def747cf0da103237cd17af5c8bfdbdf5823b2
treeea30ac28f46abdcbeeea441373ac3e3443fbac80
parent6e320c279ddfde1e16da204590c1c66a511d9b52
Remove from `base` obsolete CPP for `integer-gmp`

  * `GHC.Natural` now exports the same functions (regardless of integer backend)
  * remove unnecessary CPP around instances
  * remove the 'OPTIMISE_INTEGER_GCD_LCM' flag - almost all of those optimizations
    now work regardless of which integer backend is used

Note that some CPP still remains for situations where there are backend-specific
optimization hacks (like a more efficient GMP-only `gcd` for `Int#` and `Word#`).
libraries/base/Data/Bits.hs
libraries/base/GHC/Enum.hs
libraries/base/GHC/Natural.hs
libraries/base/GHC/Num.hs
libraries/base/GHC/Read.hs
libraries/base/GHC/Real.hs
libraries/base/base.cabal