pipes-key-value-csv-0.4.0.3: 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 :: k -> *) (rs :: [k]) Source #

Constructors

CsvOptions 

Fields

Instances

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

Methods

def :: CsvOptions k m f rs #

csvParser :: forall (m :: * -> *) (f :: k -> *) (rs :: [k]). 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 = Validation [CsvError] Source #

Shorthand for functions that can return CsvErrors.