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

Safe Haskell | None
Language | Haskell2010

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 Source #

openFile :: FilePath -> IO ReadHandle Source #

closeFile :: ReadHandle -> IO () Source #

readChunk :: ReadHandle -> IO ByteString Source #