-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Packed binary-coded decimal (BCD) serialization -- -- A module containing packed binary-coded decimal (BCD) serialization -- functions. Packed BCD is commonly used to encode numbers in mainframe -- datasets. @package hbcd @version 1.0 -- | A module containing packed binary-coded decimal (BCD) serialization -- functions module Data.BCD.Packed -- | Calculate the bytes required to store a number of digits bytesRequired :: Int -> Int -- | Pack an Integer into a ByteString packInteger :: Int -> Integer -> ByteString -- | Unpack an Integer from a ByteString unpackInteger :: ByteString -> Integer -- | Pack a Decimal into a ByteString packDecimal :: Int -> Word8 -> Decimal -> ByteString -- | Unpack a Decimal from a ByteString unpackDecimal :: Word8 -> ByteString -> Decimal