@@ -20,7 +20,7 @@ module Data.BloomFilter.Blocked.Internal (
2020
2121 -- * Hash-based operations
2222 Hashes ,
23- Salt ( Salt ) ,
23+ Salt ,
2424 Hasher (hashes ),
2525 insertHashes ,
2626 prefetchInsert ,
@@ -54,7 +54,6 @@ import Data.BloomFilter.Blocked.BitArray (BitArray, BitIx (..),
5454import qualified Data.BloomFilter.Blocked.BitArray as BitArray
5555import Data.BloomFilter.Classic.Calc
5656import Data.BloomFilter.Hash
57- import Data.Word (Word64 )
5857
5958-- | The version of the format used by 'serialise' and 'deserialise'. The
6059-- format number will change when there is an incompatible change in the
@@ -326,10 +325,6 @@ newtype Hashes a = Hashes Hash
326325 deriving newtype Prim
327326type role Hashes nominal
328327
329- -- | The salt value to be used for hashes.
330- newtype Salt = Salt Word64
331- deriving stock (Eq , Show )
332-
333328type Hasher :: (Type -> Type ) -> Constraint
334329class Hasher b where
335330 hashes :: (Hashable a ) => b a -> a -> Hashes a
@@ -346,7 +341,7 @@ instance Hasher Bloom where
346341
347342{-# INLINE hashesWithSalt #-}
348343hashesWithSalt :: (Hashable a ) => Salt -> a -> Hashes a
349- hashesWithSalt = \ ( Salt ! salt) ! x -> Hashes (hashSalt64 salt x)
344+ hashesWithSalt = \ ! salt ! x -> Hashes (hashSalt64 salt x)
350345
351346{-# INLINE blockIxAndBitGen #-}
352347-- | The scheme for turning 'Hashes' into block and bit indexes is as follows:
0 commit comments