Safe Haskell | None |
---|---|

Language | Haskell2010 |

- mkParseError :: Int -> [String] -> String -> DecodingRowError f content
- convertDecodeError :: String -> Either (Producer ByteString m ()) () -> Maybe (DecodingRowError f c)
- headlessPipe :: Monad m => Siphon c -> Decoding Headless c a -> Pipe c a m (DecodingRowError Headless c)
- indexedPipe :: Monad m => Siphon c -> Decoding (Indexed Headless) c a -> Pipe c a m (DecodingRowError Headless c)
- headedPipe :: (Monad m, Eq c) => Siphon c -> Decoding Headed c a -> Pipe c a m (DecodingRowError Headed c)
- uncheckedPipe :: Monad m => Int -> Int -> Siphon c -> Decoding (Indexed f) c a -> Maybe c -> Pipe c a m (DecodingRowError f c)
- consumeGeneral :: Monad m => Int -> Siphon c -> (Int -> [String] -> String -> e) -> Consumer' c m (Either e (Vector c, Maybe c))
- pipeGeneral :: Monad m => Int -> Siphon c -> (Int -> [String] -> String -> e) -> (Int -> Vector c -> Either e a) -> Maybe c -> Pipe c a m e
- awaitSkip :: Monad m => (a -> Bool) -> Consumer' a m a

# Documentation

mkParseError :: Int -> [String] -> String -> DecodingRowError f content Source

convertDecodeError :: String -> Either (Producer ByteString m ()) () -> Maybe (DecodingRowError f c) Source

This is a convenience function for working with `pipes-text`

.
It will convert a UTF-8 decoding error into a `DecodingRowError`

,
so the pipes can be properly chained together.

headlessPipe :: Monad m => Siphon c -> Decoding Headless c a -> Pipe c a m (DecodingRowError Headless c) Source

This is seldom useful but is included for completeness.

indexedPipe :: Monad m => Siphon c -> Decoding (Indexed Headless) c a -> Pipe c a m (DecodingRowError Headless c) Source

headedPipe :: (Monad m, Eq c) => Siphon c -> Decoding Headed c a -> Pipe c a m (DecodingRowError Headed c) Source

consumeGeneral :: Monad m => Int -> Siphon c -> (Int -> [String] -> String -> e) -> Consumer' c m (Either e (Vector c, Maybe c)) Source