Support printing `integer-simple` Integers in GHCi
authorAlec Theriault <alec.theriault@gmail.com>
Tue, 8 Jan 2019 18:28:10 +0000 (10:28 -0800)
committerBen Gamari <ben@smart-cactus.org>
Wed, 16 Jan 2019 19:17:11 +0000 (14:17 -0500)
commit582a96f422a8437f87da2539afc7d7e6772054df
tree97cde22e39fe965f2c3a8e6ab5d910b54933a657
parent9fb2702dec3e9419e1a229f8cd678324e89fdddf
Support printing `integer-simple` Integers in GHCi

This means that `:p` no longer leaks the implementation details of
`Integer` with `integer-simple`. The `print037` test case should
exercise all possible code paths for GHCi's code around printing
`Integer`s (both in `integer-simple` and `integer-gmp`).

`ghc` the package now also has a Cabal `integer-simple` flag (like the
`integer-gmp` one).
compiler/ghc.cabal.in
compiler/ghci/RtClosureInspect.hs
ghc.mk
hadrian/src/Settings/Packages.hs
testsuite/tests/ghci.debugger/scripts/all.T
testsuite/tests/ghci.debugger/scripts/print037.script [new file with mode: 0644]
testsuite/tests/ghci.debugger/scripts/print037.stdout [new file with mode: 0644]