Safe Haskell | None |
---|---|
Language | Haskell98 |
Read and write files.
- module Data.Repa.Flow.IO.Bucket
- sourceBytes :: Integer -> Array B Bucket -> IO (Sources Word8)
- sourceChars :: Integer -> Array B Bucket -> IO (Sources Char)
- sourceLines :: Integer -> IO () -> Array B Bucket -> IO (Sources (Array A Char))
- sourceRecords :: Integer -> (Word8 -> Bool) -> IO () -> Array B Bucket -> IO (Sources (Array A Word8))
- sourceTSV :: Integer -> IO () -> Array B Bucket -> IO (Sources (Array A (Array A Char)))
- sourceCSV :: Integer -> IO () -> Array B Bucket -> IO (Sources (Array A (Array A Char)))
Buckets
module Data.Repa.Flow.IO.Bucket
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.
:: 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.
:: 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.