Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- produceBS :: IsString r => Monad m => m ByteString -> Producer' ByteString m r
- newlineEncode :: (a -> ByteString) -> a -> ByteString
- digit0 :: Word8
- digit9 :: Word8
- colon :: Word8
- comma :: Word8
- newline :: Word8
- encodeNetstring :: (a -> ByteString) -> a -> ByteString
- decodeNetstring :: IsString r => Monad m => (ByteString -> Either String a) -> ParserP ByteString a m r
- type ParserP inp out m r = forall x. StateT (Producer inp m x) (Producer out m) r
- yieldP :: Monad m => out -> ParserP inp out m ()
- drawP :: Monad m => ParserP inp out m (Maybe inp)
- drawAllP :: Monad m => ParserP inp out m [inp]
- drawByteP :: Monad m => ParserP ByteString out m (Maybe Word8)
- unDrawP :: Monad m => inp -> ParserP inp out m ()
- parseMany :: Monad m => (Producer a m r -> Producer b m (Producer a m r)) -> Producer a m r -> FreeT (Producer b m) m r
Documentation
produceBS :: IsString r => Monad m => m ByteString -> Producer' ByteString m r Source #
Produce ByteString
from a Monad
.
NoFraming
NewlineFraming
newlineEncode :: (a -> ByteString) -> a -> ByteString Source #
encodeNetstring :: (a -> ByteString) -> a -> ByteString Source #
decodeNetstring :: IsString r => Monad m => (ByteString -> Either String a) -> ParserP ByteString a m r Source #
Type Parser
parseMany :: Monad m => (Producer a m r -> Producer b m (Producer a m r)) -> Producer a m r -> FreeT (Producer b m) m r Source #
'parseMany f'
groups a Producer
of ByteString
s
into a series of Producer
s delimited by f,
where the delimiter is dropped