safer-file-handles-bytestring-0.3.0.1: Extends safer-file-handles with ByteString operations

MaintainerBas van Dijk <v.dijk.bas@gmail.com>

Data.ByteString.Lazy.Char8.SaferFileHandles

Description

This module lifts the bytestring IO operations into the region monad.

Synopsis

Documentation

hGetContents :: (FileHandle handle, ReadModes ioMode, AncestorRegion pr cr, MonadIO cr) => handle ioMode pr -> cr ByteStringSource

Wraps: Data.ByteString.hGetContents.

hGet :: (FileHandle handle, ReadModes ioMode, AncestorRegion pr cr, MonadIO cr) => handle ioMode pr -> Int -> cr ByteStringSource

Wraps: Data.ByteString.hGet.

hGetNonBlocking :: (FileHandle handle, ReadModes ioMode, AncestorRegion pr cr, MonadIO cr) => handle ioMode pr -> Int -> cr ByteStringSource

Wraps: Data.ByteString.hGetNonBlocking.

hPut :: (FileHandle handle, WriteModes ioMode, AncestorRegion pr cr, MonadIO cr) => handle ioMode pr -> ByteString -> cr ()Source

Wraps: Data.ByteString.hPut.