Database.CDB.Packable
- 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.
Methods
pack :: k -> ByteStringSource
class Unpackable v whereSource
An instance of Unpackable can be losslessly transformed from a ByteString.
Methods
unpack :: ByteString -> vSource
Instances