Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Monad m => MonadFwdStream m where
- class MonadFwdStream m => MonadCursorStream m where
Documentation
class Monad m => MonadFwdStream m where Source #
readahead :: Natural -> m (Chunk m) Source #
Read a number of bytes without advancing the cursor.
advance :: Natural -> m () Source #
Advance cursor without reading.
overwrite :: Chunk m -> m () Source #
Insert bytes into the stream at the cursor position, overwriting existing bytes.
Instances
MonadIO m => MonadFwdStream (ReaderT Handle m) Source # | |
Monad m => MonadFwdStream (StateT ([a], [a]) m) Source # | |
Monad m => MonadFwdStream (StateT (ByteString, Builder) m) Source # | |
Defined in StreamPatch.Stream |