Safe Haskell | None |
---|---|
Language | Haskell2010 |
An Interpreter with http-client as the foundation
- data HttpClient
- runHttp :: (Monad m, MonadIO m) => Manager -> FT (HttpF HttpClient) m a -> m a
- runTHttp :: (Monad m, MonadIO m, MonadTrans t, Monad (t m)) => Manager -> FT (HttpF HttpClient) m a -> t m a
Documentation
data HttpClient Source
HttpClient
is an uninhabited type used to identify the http-client
based interpreter
type ResponseType HttpClient = Response ByteString Source | |
type RequestType HttpClient = Request Source | HttpClient expects |
runHttp :: (Monad m, MonadIO m) => Manager -> FT (HttpF HttpClient) m a -> m a Source
The main http-client interpreter. The client is free to specify the base
effect monad so long as there is an instance of MonadIO
for it in scope.
runTHttp :: (Monad m, MonadIO m, MonadTrans t, Monad (t m)) => Manager -> FT (HttpF HttpClient) m a -> t m a Source
The main http-client interpreter. The client is free to specify the base
effect monad (m
), and in thise case this the result can be lifted into a
higher monad transformer stack (t
)