- class Packable k where
- pack :: k -> ByteString
- class Unpackable v where
- unpack :: ByteString -> v
Documentation
An instance of Packable
can be losslessly transformed into a ByteString
.
pack :: k -> ByteStringSource
class Unpackable v whereSource
An instance of Unpackable
can be losslessly transformed from a ByteString
.
unpack :: ByteString -> vSource