Data.Crc32
crc32 :: ByteString -> Crc32 Source #
CRC32 checksum.
>>> import Data.ByteString.Lazy.Char8 >>> crc32 (pack "The quick brown fox jumps over the lazy dog") 0x414fa339
>>>
import Data.ByteString.Lazy.Char8
crc32 (pack "The quick brown fox jumps over the lazy dog")
>>> crc32 (pack "123456789") 0xcbf43926
crc32 (pack "123456789")
newtype Crc32 Source #
Constructors
Defined in Data.Crc32
Methods
showsPrec :: Int -> Crc32 -> ShowS #
show :: Crc32 -> String #
showList :: [Crc32] -> ShowS #
(==) :: Crc32 -> Crc32 -> Bool #
(/=) :: Crc32 -> Crc32 -> Bool #
compare :: Crc32 -> Crc32 -> Ordering #
(<) :: Crc32 -> Crc32 -> Bool #
(<=) :: Crc32 -> Crc32 -> Bool #
(>) :: Crc32 -> Crc32 -> Bool #
(>=) :: Crc32 -> Crc32 -> Bool #
max :: Crc32 -> Crc32 -> Crc32 #
min :: Crc32 -> Crc32 -> Crc32 #