Stability | Portability : |
---|---|
Maintainer | Trevor Elliott <trevor@galois.com> |
Data.Serialize
Description
- class Serialize t where
- encode :: Serialize a => a -> ByteString
- encodeLazy :: Serialize a => a -> ByteString
- decode :: Serialize a => ByteString -> Either String a
- decodeLazy :: Serialize a => ByteString -> Either String a
- module Data.Serialize.Get
- module Data.Serialize.Put
The Serialize class
class Serialize t where
Instances
Serialize serialisation
encode :: Serialize a => a -> ByteString
Encode a value using binary serialization to a strict ByteString.
encodeLazy :: Serialize a => a -> ByteString
Encode a value using binary serialization to a lazy ByteString.
decode :: Serialize a => ByteString -> Either String a
Decode a value from a strict ByteString, reconstructing the original structure.
decodeLazy :: Serialize a => ByteString -> Either String a
Decode a value from a lazy ByteString, reconstructing the original structure.
module Data.Serialize.Get
module Data.Serialize.Put