summaryrefslogtreecommitdiff
path: root/libraries/integer-gmp
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2018-04-13 11:31:09 -0400
committerBen Gamari <ben@smart-cactus.org>2018-04-13 11:33:09 -0400
commitc4814ab6b8d756ae0e32c9a9f44e4888c4e24763 (patch)
tree0a99a3053c705ea067a5ab94423fe557fc43f88a /libraries/integer-gmp
parentb1386942e63ba5fe4b2da27f5025afdf80356392 (diff)
downloadhaskell-c4814ab6b8d756ae0e32c9a9f44e4888c4e24763.tar.gz
Bump version numbers: base-4.11.1.0, integer-gmp-1.0.2.0
This takes care of bumping the `base` and `integer-gmp` minor version numbers in anticipation of a GHC 8.4.2 release. While I was in town, I also filled in a `@since TODO` Haddock annotation for `powModSecInteger` in `integer-gmp` with `1.0.2.0`, and updated the changelog accordingly. Test Plan: ./validate Reviewers: hvr, goldfire, bgamari Reviewed By: bgamari Subscribers: thomie, carter GHC Trac Issues: #15025 Differential Revision: https://phabricator.haskell.org/D4586
Diffstat (limited to 'libraries/integer-gmp')
-rw-r--r--libraries/integer-gmp/changelog.md7
-rw-r--r--libraries/integer-gmp/integer-gmp.cabal2
-rw-r--r--libraries/integer-gmp/src/GHC/Integer/Type.hs2
3 files changed, 9 insertions, 2 deletions
diff --git a/libraries/integer-gmp/changelog.md b/libraries/integer-gmp/changelog.md
index b817881191..51c84bc047 100644
--- a/libraries/integer-gmp/changelog.md
+++ b/libraries/integer-gmp/changelog.md
@@ -1,5 +1,12 @@
# Changelog for [`integer-gmp` package](http://hackage.haskell.org/package/integer-gmp)
+## 1.0.2.0 *TBA*
+
+ * Bundled with GHC 8.4.2
+
+ * Define `powModSecInteger`, a "secure" version of `powModInteger` using the
+ `mpz_powm_sec` function.
+
## 1.0.1.0 *July 2017*
* Bundled with GHC 8.2.1
diff --git a/libraries/integer-gmp/integer-gmp.cabal b/libraries/integer-gmp/integer-gmp.cabal
index d2f6e3cedf..5d2f89039c 100644
--- a/libraries/integer-gmp/integer-gmp.cabal
+++ b/libraries/integer-gmp/integer-gmp.cabal
@@ -1,6 +1,6 @@
cabal-version: 2.0
name: integer-gmp
-version: 1.0.1.0
+version: 1.0.2.0
synopsis: Integer library based on GMP
license: BSD3
diff --git a/libraries/integer-gmp/src/GHC/Integer/Type.hs b/libraries/integer-gmp/src/GHC/Integer/Type.hs
index 5dcbdce2b8..9ea7c0641c 100644
--- a/libraries/integer-gmp/src/GHC/Integer/Type.hs
+++ b/libraries/integer-gmp/src/GHC/Integer/Type.hs
@@ -1451,7 +1451,7 @@ powModInteger b e m = case m of
-- supports it (GMP >= 5). Otherwise, it internally falls back to
-- @'powModInteger'@, and a warning will be emitted when used.
--
--- @since TODO
+-- @since 1.0.2.0
{-# NOINLINE powModSecInteger #-}
powModSecInteger :: Integer -> Integer -> Integer -> Integer
powModSecInteger b e m = bigNatToInteger (powModSecSBigNat b' e' m')