pipes-key-value-csv-0.0.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.KeyValue

Description

Types used by the key-value part of the library.

Synopsis

Documentation

data KeyValueError Source

An error that occured during the parsing of the header.

Constructors

MissingValue

A value is missing in the header.

MultipleValues

A value is given multiple times.

ValueParsingError String

Parsing error as returned by Data.Text.Lazy.Read.

type WithKeyValueError = AccValidation [KeyValueError] Source

Shorthand for functions that can return KeyValueErrors.

data KeyValueOptions m f rs Source

Constructors

KeyValueOptions 

Fields

_kvParser :: Rec (CellParser m f) rs
 
_keyNames :: Rec (Const Text) rs
 

Instances

(RecAll k f rs FromCell, FieldAll k rs (Typeable k), Record k rs, Monad m) => Default (KeyValueOptions k m f rs) Source 

kvParser :: forall m f rs m f. Lens (KeyValueOptions m f rs) (KeyValueOptions m f rs) (Rec (CellParser m f :: k -> *) rs) (Rec (CellParser m f :: k -> *) rs) Source

keyNames :: forall m f rs. Lens' (KeyValueOptions m f rs) (Rec (Const Text :: k -> *) rs) Source