packages feed

cityhash 0.0.2 → 0.0.3

raw patch · 2 files changed

+16/−14 lines, 2 filesdep ~test-frameworkPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: test-framework

API changes (from Hackage documentation)

Files

Data/Digest/CityHash.hs view
@@ -8,15 +8,15 @@ -- Stability   : experimental -- Portability : portable (FFI) -- --- This module implements a binding to Google's CityHash family of--- hashing functions. You can find more information here:+-- This module implements a binding to the CityHash family of hashing+-- functions. You can find more information here: -- <http://code.google.com/p/cityhash/>. It implements both the 64-bit -- and 128-bit interfaces. -- --- Note that CityHash is designed to work on architectures where--- unaligned reads do not have a large penalty. In practice it is only--- used at Google on little-endian Intel/AMD CPUs it seems, and has--- not been tested on big-endian architectures.+-- Note that CityHash was designed to work on architectures where+-- unaligned reads do not have a large penalty. In practice, it is+-- only used at Google on little-endian Intel/AMD CPUs, and has not+-- been tested on big-endian architectures. --  module Data.Digest.CityHash ( -- * Hashing values @@ -39,10 +39,10 @@       return $ c_CityHash64 cstr clen {-# INLINEABLE cityHash64 #-} --- | Hash a value into a 128bit result. Per the google documentation,--- this is probably faster for inputs which the length is greater than,--- say, 200 bytes. It's also used inside google for code that wants to--- have minimal collisions.+-- | Hash a value into a 128bit result. Per the documentation, this is+-- probably only faster for inputs with a length greater than+-- approximately 200 bytes. Alternatively, use this when you wish+-- to have minimal collisions. cityHash128 :: S.ByteString -> Word128 cityHash128 bs   = unsafePerformIO . U.unsafeUseAsCStringLen bs $ \(cstr,clen) ->@@ -58,6 +58,7 @@ -- -- FFI bindings -- + foreign import ccall unsafe "hs_city.h hs_CityHash64"   c_CityHash64 :: CString -> Int -> Word64 
cityhash.cabal view
@@ -1,8 +1,9 @@ name:                cityhash-version:             0.0.2-synopsis:            bindings to Google CityHash+version:             0.0.3+synopsis:            Bindings to CityHash description:-  This package implements a binding to the google CityHash family of hashing functions.+  This package implements a binding to the CityHash family of hashing functions (implemented in C++.)+  .   See <http://code.google.com/p/cityhash/> for more information. homepage:            http://github.com/thoughtpolice/hs-cityhash bug-reports:         https://github.com/thoughtpolice/hs-cityhash/issues@@ -45,7 +46,7 @@     base    >= 3 && < 5,     bytestring     == 0.9.*,     QuickCheck     == 2.4.*,-    test-framework == 0.3.*,+    test-framework == 0.4.*,     test-framework-quickcheck2 == 0.2.*,     cityhash