Safe Haskell | None |
---|---|
Language | Haskell2010 |
Encoding and decoding functions
Synopsis
- flat :: Flat a => a -> ByteString
- flatRaw :: (Flat a, AsByteString b) => a -> b
- unflat :: (Flat a, AsByteString b) => b -> Decoded a
- unflatWith :: AsByteString b => Get a -> b -> Decoded a
- unflatRaw :: (Flat a, AsByteString b) => b -> Decoded a
- unflatRawWith :: AsByteString b => Get a -> b -> Decoded a
Documentation
flat :: Flat a => a -> ByteString Source #
Encode padded value.
flatRaw :: (Flat a, AsByteString b) => a -> b Source #
Encode unpadded value
unflatWith :: AsByteString b => Get a -> b -> Decoded a Source #
Decode padded value, using the provided unpadded decoder.
unflatRawWith :: AsByteString b => Get a -> b -> Decoded a Source #
Unflat unpadded value, using provided decoder