Safe Haskell | None |
---|
This module allows constant-space CSV parsing.
It feeds ByteString
s into cassavas incremental CSV parser to attain true
constant-space record streaming.
- feedParser :: Monad m => Parser a -> Producer ByteString m () -> Producer (Either String a) m ()
- feedHeaderParser :: (Monad m, FromNamedRecord a) => HeaderParser (Parser a) -> Producer ByteString m () -> Producer (Either String a) m ()
- decode :: (Monad m, FromRecord a) => Bool -> Producer ByteString m () -> Producer (Either String a) m ()
- decodeWith :: (Monad m, FromRecord a) => DecodeOptions -> Bool -> Producer ByteString m () -> Producer (Either String a) m ()
- decodeByName :: (Monad m, FromNamedRecord a) => Producer ByteString m () -> Producer (Either String a) m ()
- decodeByNameWith :: (Monad m, FromNamedRecord a) => DecodeOptions -> Producer ByteString m () -> Producer (Either String a) m ()
Documentation
feedParser :: Monad m => Parser a -> Producer ByteString m () -> Producer (Either String a) m ()Source
Create a Record Producer
by feeding ByteString
s into a Parser
feedHeaderParser :: (Monad m, FromNamedRecord a) => HeaderParser (Parser a) -> Producer ByteString m () -> Producer (Either String a) m ()Source
Create a NamedRecord Producer
by feeding ByteString
s into a Parser
decode :: (Monad m, FromRecord a) => Bool -> Producer ByteString m () -> Producer (Either String a) m ()Source
Equivalent to
.
decodeWith
defaultDecodeOptions
decodeWith :: (Monad m, FromRecord a) => DecodeOptions -> Bool -> Producer ByteString m () -> Producer (Either String a) m ()Source
Create a Producer
that takes a ByteString
Producer
as input,
producing either errors or FromRecord
s.
decodeByName :: (Monad m, FromNamedRecord a) => Producer ByteString m () -> Producer (Either String a) m ()Source
Equivalent to
.
decodeByNameWith
defaultDecodeOptions
decodeByNameWith :: (Monad m, FromNamedRecord a) => DecodeOptions -> Producer ByteString m () -> Producer (Either String a) m ()Source
Create a Producer
that takes a ByteString
Producer
as input,
producing either errors or FromNamedRecord
s.