diff options
author | Alec Theriault <alec.theriault@gmail.com> | 2019-01-08 10:28:10 -0800 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-01-16 14:17:11 -0500 |
commit | 582a96f422a8437f87da2539afc7d7e6772054df (patch) | |
tree | 97cde22e39fe965f2c3a8e6ab5d910b54933a657 /hadrian/src/Settings/Packages.hs | |
parent | 9fb2702dec3e9419e1a229f8cd678324e89fdddf (diff) | |
download | haskell-582a96f422a8437f87da2539afc7d7e6772054df.tar.gz |
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).
Diffstat (limited to 'hadrian/src/Settings/Packages.hs')
-rw-r--r-- | hadrian/src/Settings/Packages.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hadrian/src/Settings/Packages.hs b/hadrian/src/Settings/Packages.hs index 8963c76a13..5993723bee 100644 --- a/hadrian/src/Settings/Packages.hs +++ b/hadrian/src/Settings/Packages.hs @@ -72,7 +72,9 @@ packageArgs = do , ghcWithInterpreter ? notStage0 ? arg "ghci" , flag CrossCompiling ? arg "-terminfo" , notStage0 ? intLib == integerGmp ? - arg "integer-gmp" ] + arg "integer-gmp" + , notStage0 ? intLib == integerSimple ? + arg "integer-simple" ] , builder (Haddock BuildPackage) ? arg ("--optghc=-I" ++ path) ] |