pipes-key-value-csv-0.4.0.1: Streaming processing of CSV files preceded by key-value pairs.

Pipes.KeyValueCsv.Internal

Description

Helper functions

Synopsis

# Documentation

Build a lazy Text from chunks obtained from a pipe.

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.