packages feed

hashes 0.2.2.0 → 0.2.2.1

raw patch · 4 files changed

+11/−7 lines, 4 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Data.Hash.Class.Mutable: type family Context a :: Type;
- Data.Hash.Class.Mutable.Internal: type family Context a :: Type;
- Data.Hash.Class.Mutable.Salted: type family Salt a :: Type;
- Data.Hash.Class.Pure: type family Context a :: Type;
- Data.Hash.Class.Pure.Internal: type family Context a :: Type;
- Data.Hash.Class.Pure.Salted: type family Context a :: Type;
- Data.Hash.SipHash: instance ((GHC.TypeNats.CmpNat n 8 Data.Type.Equality.== 'GHC.Types.GT) GHC.Types.~ 'GHC.Types.True, Data.Hash.SipHash.SipHashRounds (n GHC.TypeNats.- 8) t) => Data.Hash.SipHash.SipHashRounds n 'GHC.Types.True
+ Data.Hash.Class.Mutable: type Context a :: Type;
+ Data.Hash.Class.Mutable.Internal: type Context a :: Type;
+ Data.Hash.Class.Mutable.Salted: type Salt a :: Type;
+ Data.Hash.Class.Pure: type Context a :: Type;
+ Data.Hash.Class.Pure.Internal: type Context a :: Type;
+ Data.Hash.Class.Pure.Salted: type Context a :: Type;
+ Data.Hash.Class.Pure.Salted: type Salt a :: Type;
+ Data.Hash.SipHash: instance ((GHC.TypeNats.Internal.CmpNat n 8 Data.Type.Equality.== 'GHC.Types.GT) GHC.Types.~ 'GHC.Types.True, Data.Hash.SipHash.SipHashRounds (n GHC.TypeNats.- 8) t) => Data.Hash.SipHash.SipHashRounds n 'GHC.Types.True

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for the hashes package +## 0.2.2.1 -- 2022-09-28++*   Support for Apple Silicon (`aarch64_HOST_ARCH`)+ ## 0.2.2.0 -- 2022-08-20  *   Test suite for SHA hash functions
hashes.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: hashes-version: 0.2.2.0+version: 0.2.2.1 synopsis: Hash functions Description: Efficient implementations of hash functions homepage: https://github.com/larskuhtz/hs-hashes
src/Data/Hash/FNV1.hs view
@@ -366,7 +366,7 @@ {-# INLINE fnvOffsetBasis64 #-}  fnvPrime :: Word-#if defined(x86_64_HOST_ARCH)+#if defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH) fnvPrime = fromIntegral fnvPrime64 #elif defined(i386_HOST_ARCH) fnvPrime = fromIntegral fvnPrime32@@ -376,7 +376,7 @@ {-# INLINE fnvPrime #-}  fnvOffsetBasis :: Word-#if defined(x86_64_HOST_ARCH)+#if defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH) fnvOffsetBasis = fromIntegral fnvOffsetBasis64 #elif defined(i386_HOST_ARCH) fnvOffsetBasis = fromIntegral fnvOffsetBasis32
test/Test/Data/Hash/FNV1.hs view
@@ -460,7 +460,7 @@ testZeroPrim b = primitiveFnv1 b == 0  testVectorsPrim :: [(B.ByteString, Word)]-#if defined(x86_64_HOST_ARCH)+#if defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH) testVectorsPrim = second fromIntegral <$> testVectors64 #elif defined(i386_HOST_ARCH) testVectorsPrim = second fromIntegral <$> testVectors32@@ -469,7 +469,7 @@ #endif  zerosPrim :: [B.ByteString]-#if defined(x86_64_HOST_ARCH)+#if defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH) zerosPrim = zeros64 #elif defined(i386_HOST_ARCH) zerosPrim = zeros32@@ -503,14 +503,14 @@ testZeroPrima b = primitiveFnv1a b == 0  testVectorsPrima :: [(B.ByteString, Word)]-#if defined(x86_64_HOST_ARCH)+#if defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH) testVectorsPrima = second fromIntegral <$> testVectors64a #elif defined(i386_HOST_ARCH) testVectorsPrima = second fromIntegral <$> testVectors32a #endif  zerosPrima :: [B.ByteString]-#if defined(x86_64_HOST_ARCH)+#if defined(x86_64_HOST_ARCH) || defined(aarch64_HOST_ARCH) zerosPrima = zeros64a #elif defined(i386_HOST_ARCH) zerosPrima = zeros32a