packages feed

rapidhash 0.1.0.0 → 0.1.1.0

raw patch · 3 files changed

+16/−4 lines, 3 filesdep ~deepseqPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: deepseq

API changes (from Hackage documentation)

+ Data.Hash.RapidHash.Types: instance Control.DeepSeq.NFData Data.Hash.RapidHash.Types.RapidHash
+ Data.Hash.RapidHash.Types: instance Control.DeepSeq.NFData Data.Hash.RapidHash.Types.RapidSeed

Files

CHANGELOG.md view
@@ -1,5 +1,13 @@ # Changelog — rapidhash +## Unreleased++## 0.1.1.0 - 2026-07-26++### Added++- For convenience, provide `NFData` instances for both `RapidHash` and `RapidSeed`.+ ## 0.1.0.0 - 2026-07-26  Initial release.
rapidhash.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           rapidhash-version:        0.1.0.0+version:        0.1.1.0 synopsis:       rapidhash v3 - very fast, high-quality, non-cryptographic hashing description:    Zero-copy FFI bindings to rapidhash v3, a very fast, high-quality,                 non-cryptographic hash. The upstream single-header C implementation is@@ -102,6 +102,7 @@     , binary ==0.8.*     , bytestring ==0.12.*     , bytestring-lexing ==0.5.*+    , deepseq >=1.5 && <1.7     , hashable ==1.5.*     , primitive >=0.8 && <0.10     , text ==2.1.*@@ -144,6 +145,7 @@     , binary ==0.8.*     , bytestring ==0.12.*     , bytestring-lexing ==0.5.*+    , deepseq >=1.5 && <1.7     , doctest-parallel ==0.4.*     , hashable ==1.5.*     , primitive >=0.8 && <0.10@@ -184,6 +186,7 @@     , binary ==0.8.*     , bytestring ==0.12.*     , bytestring-lexing ==0.5.*+    , deepseq >=1.5 && <1.7     , hashable ==1.5.*     , hedgehog ==1.7.*     , primitive >=0.8 && <0.10@@ -224,7 +227,7 @@     , binary ==0.8.*     , bytestring ==0.12.*     , bytestring-lexing ==0.5.*-    , deepseq >=1.5 && <1.7+    , deepseq >=1.4 && <1.7     , hashable ==1.5.*     , murmur-hash ==0.1.*     , primitive >=0.8 && <0.10
src/Data/Hash/RapidHash/Types.hs view
@@ -25,6 +25,7 @@   readsRapidHash, ) where +import Control.DeepSeq (NFData) import Control.Monad (when) import Control.Monad.ST.Strict (ST) import Data.Binary (Binary)@@ -79,7 +80,7 @@ -- | Minimal wrapper around a rapidhash seed. newtype RapidSeed = RapidSeed Word64   deriving stock (Generic, Read, Show)-  deriving newtype (Eq, Num, Ord)+  deriving newtype (Eq, NFData, Num, Ord)  -- | rapidhash's default seed is 0 in the reference implementation defaultSeed :: RapidSeed@@ -102,7 +103,7 @@ -- rhv3:0000000000000abc newtype RapidHash = RapidHash Word64   deriving stock (Generic)-  deriving newtype (Eq, Hashable, Ord)+  deriving newtype (Eq, Hashable, NFData, Ord)  -- | -- The prefix used during serialization and deserialization. This is not a universal