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

Safe HaskellNone
LanguageHaskell98

Data.Repa.Flow.Auto.SizedIO

Contents

Description

Read and write files.

Synopsis

Buckets

Sourcing

sourceBytes :: Integer -> Array B Bucket -> IO (Sources Word8) Source #

Like sourceBytes, but with the default chunk size.

sourceChars :: Integer -> Array B Bucket -> IO (Sources Char) Source #

Like sourceChars, but with the default chunk size.

sourceLines Source #

Arguments

:: Integer

Size of chunk to read in bytes.

-> IO ()

Action to perform if we can't get a whole record.

-> Array B Bucket

Buckets.

-> IO (Sources (Array A Char)) 

Like sourceLines, but with the default chunk size and error action.

sourceRecords Source #

Arguments

:: 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 B Bucket

File handles.

-> IO (Sources (Array A Word8)) 

Like sourceRecords, but with the default chunk size and error action.

sourceTSV Source #

Arguments

:: Integer

Chunk length.

-> IO ()

Action to perform if we find line longer than the chunk length.

-> Array B Bucket

Buckets

-> IO (Sources (Array A (Array A Char))) 

Read a file containing Tab-Separated-Values.

sourceCSV Source #

Arguments

:: Integer

Chunk length.

-> IO ()

Action to perform if we find line longer than the chunk length.

-> Array B Bucket

Buckets

-> IO (Sources (Array A (Array A Char))) 

Read a file containing Comma-Separated-Values.