pipes-csv-1.0.0: Fast, streaming csv parser

Safe HaskellNone

Pipes.Csv

Description

This module allows constant-space CSV parsing.

It feeds ByteStrings into cassavas incremental CSV parser to attain true constant-space record streaming.

Synopsis

Documentation

feedParser :: Monad m => Parser a -> Producer ByteString m () -> Producer (Either String a) m ()Source

Create a Record Producer by feeding ByteStrings 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 ByteStrings into a Parser

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 FromRecords.

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 FromNamedRecords.