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

Portabilitynon-portable (not tested)
Stabilityexperimental
Maintainerhttp@henning-thielemann.de
Safe HaskellSafe-Inferred

Network.Monad.Transfer

Description

With this monad we abstract from the IO monad, which also allows us to process data lazily or offline.

Documentation

data T m body Source

Constructors

Cons 

Fields

readLine :: AsyncExceptional m body
 
readBlock :: Int -> AsyncExceptional m body
 
writeBlock :: body -> SyncExceptional m ()
 

liftIOSync :: MonadIO io => IO (Result a) -> SyncExceptional io aSource

liftIOAsync :: (MonadIO io, Monoid a) => IO (Result a) -> AsyncExceptional io aSource