Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- consumeBreakSubstring :: Monad m => ByteString -> Consumer' ByteString m (Builder, ByteString)
- consumeBreakSubstringLeftovers :: Monad m => ByteString -> ByteString -> Consumer' ByteString m (Builder, ByteString)
- consumeDropExactLeftovers :: Monad m => ByteString -> ByteString -> Consumer' ByteString m (Either (Int, ByteString) ByteString)
- consumeDropWhileLeftovers :: Monad m => ByteString -> (Char -> Bool) -> Consumer' ByteString m ByteString
Documentation
consumeBreakSubstring :: Monad m => ByteString -> Consumer' ByteString m (Builder, ByteString) Source #
consumeBreakSubstringLeftovers :: Monad m => ByteString -> ByteString -> Consumer' ByteString m (Builder, ByteString) Source #
consumeDropExactLeftovers :: Monad m => ByteString -> ByteString -> Consumer' ByteString m (Either (Int, ByteString) ByteString) Source #
If we get back a Left, then the chunks did not match what we expected. The tuple contains the number of characters that did match and the beginning of the failure to match. If we get back a Right, it has the leftovers from the chunk that completed the match.
consumeDropWhileLeftovers :: Monad m => ByteString -> (Char -> Bool) -> Consumer' ByteString m ByteString Source #