Copyright | Copyright © 2021 Lars Kuhtz <lakuhtz@gmail.com> |
---|---|
License | MIT |
Maintainer | Lars Kuhtz <lakuhtz@gmail.com> |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Hashes with pure context
Synopsis
- class IncrementalHash a => Hash a where
- initialize :: Context a
- class IncrementalHash a where
- hashPtr :: forall a. Hash a => Ptr Word8 -> Int -> IO a
- hashStorable :: forall a b. Hash a => Storable b => b -> a
- hashByteString :: forall a. Hash a => ByteString -> a
- hashByteStringLazy :: forall a. Hash a => ByteString -> a
- hashShortByteString :: forall a. Hash a => ShortByteString -> a
- hashByteArray :: forall a. Hash a => ByteArray# -> a
- updateByteString :: forall a. IncrementalHash a => Context a -> ByteString -> Context a
- updateByteStringLazy :: forall a. IncrementalHash a => Context a -> ByteString -> Context a
- updateShortByteString :: forall a. IncrementalHash a => Context a -> ShortByteString -> Context a
- updateStorable :: forall a b. IncrementalHash a => Storable b => Context a -> b -> Context a
- updateByteArray :: forall a. IncrementalHash a => Context a -> ByteArray# -> Context a
- initializeWithSalt :: forall a s. Hash a => Storable s => s -> Context a
Documentation
class IncrementalHash a => Hash a where Source #
initialize :: Context a Source #
Instances
Hash Fnv132Hash Source # | |
Defined in Data.Hash.FNV1 | |
Hash Fnv164Hash Source # | |
Defined in Data.Hash.FNV1 | |
Hash Fnv1Hash Source # | |
Defined in Data.Hash.FNV1 | |
Hash Fnv1a32Hash Source # | |
Defined in Data.Hash.FNV1 | |
Hash Fnv1a64Hash Source # | |
Defined in Data.Hash.FNV1 | |
Hash Fnv1aHash Source # | |
Defined in Data.Hash.FNV1 |
class IncrementalHash a where Source #
Instances
hashStorable :: forall a b. Hash a => Storable b => b -> a Source #
hashByteString :: forall a. Hash a => ByteString -> a Source #
hashByteStringLazy :: forall a. Hash a => ByteString -> a Source #
hashShortByteString :: forall a. Hash a => ShortByteString -> a Source #
hashByteArray :: forall a. Hash a => ByteArray# -> a Source #
Incremental Hashing
updateByteString :: forall a. IncrementalHash a => Context a -> ByteString -> Context a Source #
updateByteStringLazy :: forall a. IncrementalHash a => Context a -> ByteString -> Context a Source #
updateShortByteString :: forall a. IncrementalHash a => Context a -> ShortByteString -> Context a Source #
updateStorable :: forall a b. IncrementalHash a => Storable b => Context a -> b -> Context a Source #
updateByteArray :: forall a. IncrementalHash a => Context a -> ByteArray# -> Context a Source #