summaryrefslogtreecommitdiff
path: root/libraries/integer-gmp
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-07-06 15:08:31 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-07-07 13:56:11 -0400
commitd3bd68978476487591fc60f7feb7cfb36b8fc3a3 (patch)
treea25b5760381e7a95d122d114812467c4d085c31d /libraries/integer-gmp
parent180b63136f25d9fedb764cb9bc23637e7781ed4e (diff)
downloadhaskell-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.hs8
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#