free-http-0.1.1.0: An HTTP Client based on Free Monads.

Safe HaskellSafe
LanguageHaskell2010

Network.HTTP.Client.Free.Types

Contents

Description

The primary Free Monad wrapping HTTP actions.

Synopsis

Type Familes

type family RequestType client :: * Source

type family to represent the request type foundation

Instances

type RequestType HttpClient = Request Source

HttpClient expects Requests and returns 'Response ByteString's

type family ResponseType client :: * Source

type family to represent the response type foundation

The base functor of our library

data HttpF client a Source

Our functor from which the free-http free monad is generated from.

Constructors

HttpF StdMethod (RequestType client) (ResponseType client -> a) 

Instances

Functor (HttpF client) Source 

Type aliases

type FreeHttp client m a = FT (HttpF client) m a Source

a type alias for the free monad generated by HttpF