-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Simple wrapper around Data.Binary, which adds StateT to Get/Put monads.
--   
--   This package declares BinaryState type class, which is similar to
--   Data.Binary.Binary, but Get/Put monads can track state.
@package binary-state
@version 0.1.1

module Data.BinaryState
type PutState s a = StateT s PutM a
type GetState s a = StateT s Get a
class BinaryState s a
put :: BinaryState s a => a -> PutState s ()
get :: BinaryState s a => GetState s a
putZ :: Binary a => a -> PutState s ()
getZ :: Binary a => GetState s a
encodeS :: BinaryState s a => s -> a -> ByteString
decodeS :: BinaryState s a => s -> ByteString -> a
decodeWith :: GetState s a -> s -> ByteString -> a
encodeWith :: (a -> PutState s ()) -> s -> a -> ByteString
encodeFile :: BinaryState s a => FilePath -> s -> a -> IO ()
decodeFile :: BinaryState s a => FilePath -> s -> IO a
decodeFile' :: BinaryState s a => FilePath -> s -> IO (a, s)
getByte :: GetState s Word8
liftOffset :: Binary a => Integer -> (a -> Put) -> a -> PutState Integer ()
putByte :: Word8 -> PutState Integer ()
isEmpty :: GetState s Bool
skip :: Int -> GetState s ()
getOffset :: PutState Integer Integer
bytesRead :: GetState s Int64
instance Data.Binary.Class.Binary a => Data.BinaryState.BinaryState () a
instance Data.BinaryState.BinaryState GHC.Integer.Type.Integer GHC.Word.Word8
instance Data.BinaryState.BinaryState GHC.Integer.Type.Integer GHC.Word.Word16
instance Data.BinaryState.BinaryState GHC.Integer.Type.Integer GHC.Word.Word32
instance (Data.BinaryState.BinaryState s a, Data.BinaryState.BinaryState s b) => Data.BinaryState.BinaryState s (a, b)
