| 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 = Validation [KeyValueError]
- data KeyValueOptions (m :: * -> *) (f :: k -> *) (rs :: [k]) = KeyValueOptions {}
- 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)
- keyNames :: forall m f rs. Lens' (KeyValueOptions m f rs) (Rec (Const Text :: k -> Type) 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 = Validation [KeyValueError] Source #
Shorthand for functions that can return KeyValueErrors.
data KeyValueOptions (m :: * -> *) (f :: k -> *) (rs :: [k]) Source #
Constructors
| KeyValueOptions | |
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 #