Binary serializing with sharing
- class (Typeable alpha, Ord alpha, Eq alpha, Show alpha) => BinaryShared alpha where
- encodeFileSer :: BinaryShared a => FilePath -> a -> IO ()
- encodeSer :: BinaryShared a => a -> ByteString
- decodeSer :: BinaryShared alpha => ByteString -> alpha
A class for storing Binary instances with shared nodes. Cycles are not supported, cause put and get is a one path process.
Encode a value in the Put monad.
Decode a value in the Get monad