Fix `integer-simple` API and tests
Fixes #16043.
-
Support GHCi
:print
-ing ofInteger
frominteger-simple
. This requires adding aninteger-simple
Cabal flag toghc
. -
Fixes API discrepancies between
integer-gmp
andinteger-simple
- Added
popCountInteger
,bitInteger
,gcdInteger
, andlcmInteger
- Made
testBitInteger
much more efficient
- Added
-
Remove some now unnecessary CPP in
base
(ex:GHC.Natural
no longer needs CPP for its export list) -
Fix GHCi printing tests that were now failing only due to
integer-gmp
having an extra CorePrep optimization (for turning smallInteger
's straight into applications ofS#
) by switchingInteger
toInt
in a bunch of places