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.Internal

Description

Helper functions

Synopsis

Documentation

build :: Monad m => Parser Text m Text Source

Build a lazy Text from chunks obtained from a pipe.

drawText :: Monad m => Parser Text m Text Source

Draw text that may be enclosed in quotes. Skips initial whitespace. If the first non-white character is not a quote mark, the function draws only the part of the text upto the next white character.

breakLines' :: Monad m => (Text -> Bool) -> FreeT (Line m) m r -> FreeT (Line m) m (FreeT (Line m) m r) Source

Break a FreeT-delimited stream of lines into two parts, on a line that satisfies the given predicate. All input lines up to the breaking one will be fully read, and each (not including the breaking one) will be re-yielded.