iteratee-0.7.0.0: Iteratee-based I/O

Data.Iteratee.Base.ReadableChunk

Description

Monadic Iteratees: incremental input parsers, processors and transformers

Support for IO enumerators

Synopsis

Documentation

class Storable el => ReadableChunk s el | s -> el whereSource

Class of streams which can be filled from a Ptr. Typically these are streams which can be read from a file, Handle, or similar resource.

Methods

readFromPtrSource

Arguments

:: MonadIO m 
=> Ptr el 
-> Int

The pointer must not be used after readFromPtr completes.

-> m s

The Int parameter is the length of the data in *bytes*.