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

Safe HaskellSafe
LanguageHaskell98

Network.Monad.Transfer.Offline

Description

Transfer type without IO interaction. Optimal for testing.

Documentation

type T body = RWS ConnError [body] body Source #

class C body => Body body where Source #

Minimal complete definition

splitAt, breakAfter

Methods

splitAt :: Int -> body -> (body, body) Source #

breakAfter :: (Char -> Bool) -> body -> (body, body) Source #

Instances
Body ByteString Source # 
Instance details

Defined in Network.Monad.Transfer.Offline

Body ByteString Source # 
Instance details

Defined in Network.Monad.Transfer.Offline

CharType char => Body [char] Source # 
Instance details

Defined in Network.Monad.Transfer.Offline

Methods

splitAt :: Int -> [char] -> ([char], [char]) Source #

breakAfter :: (Char -> Bool) -> [char] -> ([char], [char]) Source #

withBuffer :: C body => (body -> (a, body)) -> AsyncExceptional (T body) a Source #

transfer :: Body body => T (T body) body Source #

run :: Body body => T body (T body) a -> ConnError -> body -> (a, body, [body]) Source #