http-monad-0.1.1.2: Monad abstraction for HTTP allowing lazy transfer and non-I/O simulation

Safe HaskellNone
LanguageHaskell98

Network.Monad.Transfer.ChunkyLazyIO

Documentation

class C body => Body body where Source #

Minimal complete definition

length

Methods

length :: body -> Int Source #

Instances

Body ByteString Source # 
Body ByteString Source # 
CharType char => Body [char] Source # 

Methods

length :: [char] -> Int Source #

transfer Source #

Arguments

:: (HStream body, Body body) 
=> Int

chunk size, only relevant for readBlock.

-> HandleStream body 
-> T T body 

run Source #

Arguments

:: (HStream body, Body body) 
=> T body T a

dictionary for read and write methods

-> Int

chunk size

-> HandleStream body 
-> IO a