| Copyright | (c) Marcin Mrotek, 2015 |
|---|---|
| License | BSD3 |
| Maintainer | marcin.jan.mrotek@gmail.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Pipes.KeyValueCsv.Types.KeyValue
Description
Types used by the key-value part of the library.
- data KeyValueError
- type WithKeyValueError = AccValidation [KeyValueError]
- data KeyValueOptions m f rs = KeyValueOptions {}
- 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)
- keyNames :: forall m f rs. Lens' (KeyValueOptions m f rs) (Rec (Const Text :: k -> *) rs)
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. |
Instances
type WithKeyValueError = AccValidation [KeyValueError] Source
Shorthand for functions that can return KeyValueErrors.
data KeyValueOptions m f rs Source
Constructors
| KeyValueOptions | |
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