diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2020-07-06 15:08:31 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-07-07 13:56:11 -0400 |
commit | d3bd68978476487591fc60f7feb7cfb36b8fc3a3 (patch) | |
tree | a25b5760381e7a95d122d114812467c4d085c31d /libraries/integer-gmp | |
parent | 180b63136f25d9fedb764cb9bc23637e7781ed4e (diff) | |
download | haskell-d3bd68978476487591fc60f7feb7cfb36b8fc3a3.tar.gz |
BigNum: rename BigNat types
Before this patch BigNat names were confusing because we had:
* GHC.Num.BigNat.BigNat: unlifted type used everywhere else
* GHC.Num.BigNat.BigNatW: lifted type only used to share static constants
* GHC.Natural.BigNat: lifted type only used for backward compatibility
After this patch we have:
* GHC.Num.BigNat.BigNat#: unlifted type
* GHC.Num.BigNat.BigNat: lifted type (reexported from GHC.Natural)
Thanks to @RyanGlScott for spotting this.
Diffstat (limited to 'libraries/integer-gmp')
-rw-r--r-- | libraries/integer-gmp/src/GHC/Integer/GMP/Internals.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libraries/integer-gmp/src/GHC/Integer/GMP/Internals.hs b/libraries/integer-gmp/src/GHC/Integer/GMP/Internals.hs index 3af21e7e74..f754e42862 100644 --- a/libraries/integer-gmp/src/GHC/Integer/GMP/Internals.hs +++ b/libraries/integer-gmp/src/GHC/Integer/GMP/Internals.hs @@ -100,13 +100,13 @@ sqrInteger = I.integerSqr wordToNegInteger :: Word# -> Integer wordToNegInteger = I.integerFromWordNeg# -{-# DEPRECATED bigNatToInteger "Use integerFromBigNat instead" #-} +{-# DEPRECATED bigNatToInteger "Use integerFromBigNat# instead" #-} bigNatToInteger :: BigNat -> Integer -bigNatToInteger (BN# i) = I.integerFromBigNat i +bigNatToInteger (BN# i) = I.integerFromBigNat# i -{-# DEPRECATED bigNatToNegInteger "Use integerFromBigNatNeg instead" #-} +{-# DEPRECATED bigNatToNegInteger "Use integerFromBigNatNeg# instead" #-} bigNatToNegInteger :: BigNat -> Integer -bigNatToNegInteger (BN# i) = I.integerFromBigNatNeg i +bigNatToNegInteger (BN# i) = I.integerFromBigNatNeg# i type GmpLimb = Word type GmpLimb# = Word# |