Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Synopsis
- class Packable k
- class Unpackable v
- pack :: Packable k => k -> ByteString
- unpack :: Unpackable v => ByteString -> v
Documentation
An instance of Packable
can be losslessly transformed into a ByteString
.
Instances
Packable Word32 Source # | |
Defined in Database.CDB.Packable pack :: Word32 -> ByteString Source # | |
Packable ByteString Source # | |
Defined in Database.CDB.Packable pack :: ByteString -> ByteString Source # | |
Packable [Word8] Source # | |
Defined in Database.CDB.Packable pack :: [Word8] -> ByteString Source # | |
Packable [Char] Source # | |
Defined in Database.CDB.Packable pack :: [Char] -> ByteString Source # | |
Packable (UArray Word32 Word32) Source # | |
Defined in Database.CDB.Packable |
class Unpackable v Source #
An instance of Unpackable
can be losslessly transformed from a ByteString
.
Instances
Unpackable ByteString Source # | |
Defined in Database.CDB.Packable unpack :: ByteString -> ByteString Source # | |
Unpackable [Word8] Source # | |
Defined in Database.CDB.Packable unpack :: ByteString -> [Word8] Source # | |
Unpackable [Char] Source # | |
Defined in Database.CDB.Packable unpack :: ByteString -> [Char] Source # |
pack :: Packable k => k -> ByteString Source #
unpack :: Unpackable v => ByteString -> v Source #