servant-client-core-0.18: Core functionality and class for client function generation for servant APIs

Safe HaskellNone
LanguageHaskell2010

Servant.Client.Core.RunClient

Description

Types for possible backends to run client-side RequestF queries

Synopsis

Documentation

class Monad m => RunClient m where Source #

Methods

runRequest :: Request -> m Response Source #

How to make a request.

throwClientError :: ClientError -> m a Source #

Instances
ClientF ~ f => RunClient (Free f) Source # 
Instance details

Defined in Servant.Client.Core.RunClient

data ClientF a Source #

ClientF cannot stream.

Compare to RunClient.

Instances
Functor ClientF Source # 
Instance details

Defined in Servant.Client.Core.RunClient

Methods

fmap :: (a -> b) -> ClientF a -> ClientF b #

(<$) :: a -> ClientF b -> ClientF a #