arithmoi 0.2.0.2 → 0.2.0.3
raw patch · 3 files changed
+7/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Changes +4/−0
- Math/NumberTheory/Moduli.hs +2/−2
- arithmoi.cabal +1/−1
Changes view
@@ -1,3 +1,7 @@+0.2.0.3:+ Fix bug in powerMod+0.2.0.2:+ Relax bounds on array dependency for 7.4.* 0.2.0.1: Fix copy-pasto (only relevant for 7.3.*) Fix imports for ghc >= 7.3
Math/NumberTheory/Moduli.hs view
@@ -166,8 +166,8 @@ where go 1 !a !s = (a*s) `rem` md go e a s- | testBit e 0 = go (e `shiftR` 1) a ((s*s) `rem` md)- | otherwise = go (e `shiftR` 1) ((a*s) `rem` md) ((s*s) `rem` md)+ | testBit e 0 = go (e `shiftR` 1) ((a*s) `rem` md) ((s*s) `rem` md)+ | otherwise = go (e `shiftR` 1) a ((s*s) `rem` md) -- | Specialised version of 'powerMod' for 'Integer' exponents. -- Reduces the number of shifts of the exponent since shifting
arithmoi.cabal view
@@ -1,5 +1,5 @@ name : arithmoi-version : 0.2.0.2+version : 0.2.0.3 cabal-version : >= 1.6 author : Daniel Fischer copyright : (c) 2011 Daniel Fischer