repa-flow-4.2.3.1: Data-parallel data flows.

Data.Repa.Flow.Chunked.IO

Contents

Description

Input and Output for Chunked Flows.

Most functions in this module are re-exports of the ones from Data.Repa.Flow.Generic.IO, but using the Sources and Sinks type synonyms for chunked flows.

Synopsis

# Sourcing

Arguments

 :: BulkI l Bucket => Integer Size of chunk to read in bytes. -> (Word8 -> Bool) Detect the end of a record. -> IO () Action to perform if we can't get a whole record. -> Array l Bucket File handles. -> IO (Sources Int IO N (Array F Word8))

Like fileSourceRecords, but taking an existing file handle.

Read 8-bit ASCII characters from some files, using the given chunk length.

Read data from some files, using the given chunk length.

# Sinking

Write 8-bit ASCII characters to the given file handles.

Write chunks of data to the given file handles.