pipes-key-value-csv-0.1.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.Common

Description

Utility functions.

Synopsis

Documentation

lines :: Monad m => Producer Text m r -> Lines m r Source

Split a Text stream into lines.

cells :: (Monad m, Given Delimiter) => Line m r -> Cells m r Source

Split a line into delimited cells.

useDelimiter :: Char -> (Given Delimiter => a) -> a Source

Provide a delimiter for a computation. Do not use this function if there is already a Given Delimiter in scope.

wrapParser :: forall m f r. Functor m => Parser Text m (Either String (f r)) -> CellParser m f r Source

Wrap a parser to use it as a type constructor for Rec.

defaultParser :: forall m f rs. (RecAll f rs FromCell, Monad m, Record rs) => Rec (CellParser m f) rs Source

data Lines m r Source

A stream of lines.

Instances

data Cells m r Source

A stream of cells.

Instances

type Producer b = Proxy X () () b

Producers can only yield

data Text :: *

A space efficient, packed, unboxed Unicode text type.

Instances