hashmap 1.0.0.1 → 1.0.0.2
raw patch · 3 files changed
+23/−4 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGES +19/−0
- Data/Hashable.hs +2/−2
- hashmap.cabal +2/−2
+ CHANGES view
@@ -0,0 +1,19 @@+= Version 1.0.0.2, 2010-06-01 =+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^+* Improving performance of ByteString hash+by using inlinePerformIO.+++= Version 1.0.0.1, 2010-05-30 =+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^+* Doc fixes+++= Version 1.0.0, 2010-05-30 =+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^+* Adding module HashSet+++= Version 0.9.0, 2010-05-29 =+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^+* Initial versions of HashMap, Hashable
Data/Hashable.hs view
@@ -34,11 +34,11 @@ import Data.Word import Data.List (foldl') import qualified Data.ByteString as B+import qualified Data.ByteString.Internal as BInt import qualified Data.ByteString.Unsafe as BInt import qualified Data.ByteString.Lazy as BL import qualified Data.ByteString.Lazy.Internal as BLInt import Foreign.C-import System.IO.Unsafe (unsafePerformIO) -- | The class containing a function 'hash' which computes the hash values of -- given value.@@ -107,7 +107,7 @@ foreign import ccall unsafe hashByteString :: CString -> CInt -> IO CInt instance Hashable B.ByteString where- hash bstr = fromIntegral $ unsafePerformIO $ BInt.unsafeUseAsCStringLen bstr $+ hash bstr = fromIntegral $ BInt.inlinePerformIO $ BInt.unsafeUseAsCStringLen bstr $ \(str, len) -> hashByteString str (fromIntegral len) instance Hashable BL.ByteString where hash = BLInt.foldlChunks hashAndCombine 0
hashmap.cabal view
@@ -1,5 +1,5 @@ Name: hashmap-Version: 1.0.0.1+Version: 1.0.0.2 Synopsis: Persistent containers HashMap and HashSet. Description: An implementation of persistent 'HashMap' and 'HashSet' on top of 'Data.IntMap.IntMap' and 'Data.IntSet.IntSet',@@ -23,7 +23,7 @@ Category: Data Build-type: Simple Cabal-version: >= 1.2-+Extra-source-files: CHANGES Library Exposed-modules: Data.Hashable, Data.HashMap, Data.HashSet