-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Various cryptographic hashes for bytestrings; CRC32 and Adler32 for now. -- -- This package provides efficient cryptographic hash implementations for -- strict and lazy bytestrings. For now, CRC32 and Adler32 are supported; -- they are implemented as FFI bindings to efficient code from zlib. @package digest @version 0.0.1.2 -- | Adler32 wrapper module Data.Digest.Adler32 -- | The class of values for which Adler32 may be computed class Adler32 a where adler32 = adler32Update 1 adler32 :: Adler32 a => a -> Word32 adler32Update :: Adler32 a => Word32 -> a -> Word32 instance Adler32 [Word8] instance Adler32 ByteString instance Adler32 ByteString -- | CRC32 wrapper module Data.Digest.CRC32 -- | The class of values for which CRC32 may be computed class CRC32 a where crc32 = crc32Update 0 crc32 :: CRC32 a => a -> Word32 crc32Update :: CRC32 a => Word32 -> a -> Word32 instance CRC32 [Word8] instance CRC32 ByteString instance CRC32 ByteString