streaming-commons-0.1.18: Common lower-level functions needed by various streaming data libraries

Safe Haskell | None
Language | Haskell98

Data.Streaming.FileRead

Description

The standard `openFile` call on Windows causing problematic file locking in some cases. This module provides a cross-platform file reading API without the file locking problems on Windows.

This module always opens files in binary mode.

`readChunk` will return an empty `ByteString` on EOF.

# Documentation

data ReadHandle #

openFile :: FilePath -> IO ReadHandle #

closeFile :: ReadHandle -> IO () #

readChunk :: ReadHandle -> IO ByteString #