| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell98 |
Data.BinaryState
Documentation
class BinaryState s a where Source #
Instances
| BinaryState Integer Word8 Source # | |
| BinaryState Integer Word16 Source # | |
| BinaryState Integer Word32 Source # | |
| Binary a => BinaryState () a Source # | |
| (BinaryState s a, BinaryState s b) => BinaryState s (a, b) Source # | |
encodeS :: BinaryState s a => s -> a -> ByteString Source #
decodeS :: BinaryState s a => s -> ByteString -> a Source #
decodeWith :: GetState s a -> s -> ByteString -> a Source #
encodeWith :: (a -> PutState s ()) -> s -> a -> ByteString Source #
encodeFile :: BinaryState s a => FilePath -> s -> a -> IO () Source #
decodeFile :: BinaryState s a => FilePath -> s -> IO a Source #
decodeFile' :: BinaryState s a => FilePath -> s -> IO (a, s) Source #