packages feed

murmur-hash 0.1.0.10 → 0.1.0.11

raw patch · 4 files changed

+40/−17 lines, 4 filesnew-uploader

Files

Data/Digest/Murmur32.hs view
@@ -193,9 +193,9 @@     hash32Add c `combine` hash32Add d  instance Hashable32 B.ByteString where-  hash32Add = B.foldl go (hash32AddWord32 8)-    where go acc b = acc `combine` hash32AddWord32 (fromIntegral b)+  hash32Add bs h = B.foldl' go (hash32AddWord32 8 h) bs+    where go acc b = hash32AddWord32 (fromIntegral b) acc  instance Hashable32 L.ByteString where-  hash32Add = L.foldl go (hash32AddWord32 9)-    where go acc b = acc `combine` hash32AddWord32 (fromIntegral b)+  hash32Add bs h = L.foldl' go (hash32AddWord32 9 h) bs+    where go acc b = hash32AddWord32 (fromIntegral b) acc
Data/Digest/Murmur64.hs view
@@ -189,9 +189,9 @@     hash64Add c `combine` hash64Add d  instance Hashable64 B.ByteString where-  hash64Add = B.foldl go (hash64AddWord64 8)-    where go acc b = acc `combine` hash64AddWord64 (fromIntegral b)+  hash64Add bs h = B.foldl' go (hash64AddWord64 8 h) bs+    where go acc b = hash64AddWord64 (fromIntegral b) acc  instance Hashable64 L.ByteString where-  hash64Add = L.foldl go (hash64AddWord64 9)-    where go acc b = acc `combine` hash64AddWord64 (fromIntegral b)+  hash64Add bs h = L.foldl' go (hash64AddWord64 9 h) bs+    where go acc b = hash64AddWord64 (fromIntegral b) acc
changelog.md view
@@ -1,3 +1,12 @@+### 0.1.0.11++  - Fix space leak in `ByteString` instances+    (PR [#15](https://github.com/nominolo/murmur-hash/pull/15)).+    Fixes issue [#17](https://github.com/nominolo/murmur-hash/issues/17).++  - Build tested with GHC 8.0 - 9.12.0.++ ### 0.1.0.10    - Replace use of deprecated `bitSize` by `finiteBitSize`
murmur-hash.cabal view
@@ -1,15 +1,15 @@+Cabal-Version:   1.18 Name:            murmur-hash-Version:         0.1.0.10+Version:         0.1.0.11 License:         BSD3 License-File:    LICENSE Author:          Thomas Schilling-Maintainer:      Thomas Schilling <nominolo@googlemail.com>-Homepage:        http://github.com/nominolo/murmur-hash+Maintainer:      Andreas Abel+Homepage:        https://github.com/nominolo/murmur-hash Synopsis:        MurmurHash2 implementation for Haskell. Description:   Implements MurmurHash2, a good, fast, general-purpose,-  non-cryptographic hashing function.  See-  <http://murmurhash.googlepages.com/> for details.+  non-cryptographic hashing function.   .   This implementation is pure Haskell, so it might be a bit slower   than a C FFI binding.@@ -17,14 +17,28 @@ Category:        Data, Digest Stability:       provisional Build-Type:      Simple-Cabal-Version:   >= 1.10-Extra-Source-Files: changelog.md+Extra-Doc-Files: changelog.md +tested-with:+  GHC == 9.12.0+  GHC == 9.10.1+  GHC == 9.8.2+  GHC == 9.6.6+  GHC == 9.4.8+  GHC == 9.2.8+  GHC == 9.0.2+  GHC == 8.10.7+  GHC == 8.8.4+  GHC == 8.6.5+  GHC == 8.4.4+  GHC == 8.2.2+  GHC == 8.0.2+ Library   Default-Language: Haskell2010   Build-Depends:     base          >= 4.7 && < 5,-    bytestring    >= 0.9 && < 0.12+    bytestring    >= 0.9 && < 0.13    exposed-modules:     Data.Digest.Murmur32@@ -32,4 +46,4 @@  Source-repository head   Type:       git-  Location:   git://github.com/nominolo/murmur-hash.git+  Location:   https://github.com/nominolo/murmur-hash.git