iteratee-0.8.8.2: Iteratee-based I/O

Safe HaskellSafe-Infered

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*.