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.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 = Validation [KeyValueError] Source #

Shorthand for functions that can return KeyValueErrors.

data KeyValueOptions (m :: * -> *) (f :: k -> *) (rs :: [k]) Source #

Constructors

KeyValueOptions 

Fields

Instances

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

Methods

def :: KeyValueOptions k m f rs #

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

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