pipes-key-value-csv-0.0.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.IO

Contents

Description

File input and output.

Synopsis

Documentation

streamIn Source

Arguments

:: forall (m :: * -> *) (f :: k -> *) (g :: j -> *) (hs :: [k]) (rs :: [j]). (Given Delimiter, MonadIO m, MonadMask m, Record hs) 
=> Codec

File encoding.

-> FilePath

Input file.

-> Options (SafeT m) f g hs rs

Parsing options.

-> SafeT m (Rec (WithKeyValueError :. f) hs, Producer (Rec (WithCsvError :. g) rs) (SafeT m) (Producer ByteString (SafeT m) ())) 

Read a CSV file.

streamInBS :: (MonadIO m, MonadMask m) => FilePath -> Producer ByteString (SafeT m) () Source

Read a ByteString stream from file.

Re-exports

data SafeT m r :: (* -> *) -> * -> *

SafeT is a monad transformer that extends the base monad with the ability to register and release finalizers.

All unreleased finalizers are called at the end of the SafeT block, even in the event of exceptions.