pipes-key-value-csv-0.1.0.0: Streaming processing of CSV files preceded by key-value pairs.

Copyright(c) Marcin Mrotek, 2015
LicenseBSD3
Maintainermarcin.jan.mrotek@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Pipes.KeyValueCsv.Types.Csv

Description

Types used by the CSV part of the library.

Synopsis

Documentation

data CsvOptions m f rs Source

Constructors

CsvOptions 

Fields

_csvParser :: Rec (CellParser m f) rs
 

Instances

(RecAll k f rs FromCell, Record k rs, Monad m) => Default (CsvOptions k m f rs) Source 

csvParser :: forall m f rs. Lens' (CsvOptions m f rs) (Rec (CellParser m f) rs) Source

data CsvError Source

An error that occurred during the parsing of a row.

Constructors

CellParseError String

Error as returned by Text.Read.

MissingCell 

type WithCsvError = AccValidation [CsvError] Source

Shorthand for functions that can return CsvErrors.