arith-encode 1.0.1 → 1.0.2
raw patch · 2 files changed
+7/−8 lines, 2 filesdep +integer-rootsdep −arithmoiPVP ok
version bump matches the API change (PVP)
Dependencies added: integer-roots
Dependencies removed: arithmoi
API changes (from Hackage documentation)
Files
- arith-encode.cabal +4/−4
- src/Data/ArithEncode/Basic.hs +3/−4
arith-encode.cabal view
@@ -1,6 +1,6 @@ name: arith-encode-version: 1.0.1-cabal-version: >=1.16+version: 1.0.2+cabal-version: 1.16 license: BSD3 license-file: LICENSE copyright: Copyright (c) 2014 Eric McCorkle. All rights reserved.@@ -21,7 +21,7 @@ enumeration testing. category: Data, Serialization, Test, Testing build-type: Simple-tested-with: GHC==8.8.1, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2+tested-with: GHC==8.8.2, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2 source-repository head type: git@@ -37,12 +37,12 @@ default-language: Haskell2010 build-depends: base >=4.9 && <5,- arithmoi >= 0.5 && <0.11, array, binary, containers, hashable, integer-logarithms,+ integer-roots, unordered-containers test-suite UnitTest
src/Data/ArithEncode/Basic.hs view
@@ -136,10 +136,9 @@ import Data.HashSet(HashSet) import Data.Typeable import Prelude hiding (elem, either, seq)-import Math.NumberTheory.Powers.Squares import Math.NumberTheory.Logarithms+import Math.NumberTheory.Roots import Data.Word---import Debug.Trace import qualified Data.Array.IArray as Array import qualified Data.Either as Either@@ -680,7 +679,7 @@ fromInteger (num `mod` toInteger width) + (numelems - width)) in case sizeclasses of- -- If there is only one size class, then + -- If there is only one size class, then [ _ ] -> (fwdmapbasic 0 numelems, revmapbasic 0 numelems) (Just firstsize, _) : rest -> let@@ -759,7 +758,7 @@ encSize = sizeval, encInDomain = indomainfunc } isqrt :: Integer -> Integer-isqrt = integerSquareRoot'+isqrt = integerSquareRoot mkPairCore :: Encoding ty1 -> Encoding ty2 -> ((ty1, ty2) -> Integer, Integer -> (ty1, ty2), Maybe Integer)