|
|
|
Description |
Binary serializing with sharing
|
|
Synopsis |
|
|
|
Documentation |
|
class (Typeable alpha, Ord alpha, Eq alpha, Show alpha) => BinaryShared alpha where |
A class for storing Binary instances with shared nodes.
Cycles are not supported, cause put and get is a one path process.
| | Methods | put :: alpha -> PutShared | Encode a value in the Put monad.
| | putShared :: (alpha -> PutShared) -> alpha -> PutShared | | get :: GetShared alpha | Decode a value in the Get monad
| | getShared :: GetShared alpha -> GetShared alpha |
| | Instances | |
|
|
encodeFileSer :: BinaryShared a => FilePath -> a -> IO () |
|
encodeSer :: BinaryShared a => a -> ByteString |
|
decodeSer :: BinaryShared alpha => ByteString -> alpha |
|
Produced by Haddock version 2.6.0 |