servant-client-core-0.18.1: Core functionality and class for client function generation for servant APIs
Safe HaskellNone
LanguageHaskell2010

Servant.Client.Generic

Synopsis

Documentation

data AsClientT (m :: * -> *) Source #

A type that specifies that an API record contains a client implementation.

Instances

Instances details
GenericMode (AsClientT m) Source # 
Instance details

Defined in Servant.Client.Generic

Associated Types

type (AsClientT m) :- api #

type (AsClientT m) :- api Source # 
Instance details

Defined in Servant.Client.Generic

type (AsClientT m) :- api = Client m api

genericClient :: forall routes m. (HasClient m (ToServantApi routes), GenericServant routes (AsClientT m), Client m (ToServantApi routes) ~ ToServant routes (AsClientT m)) => routes (AsClientT m) Source #

Generate a record of client functions.

genericClientHoist Source #

Arguments

:: forall routes m n. (HasClient m (ToServantApi routes), GenericServant routes (AsClientT n), Client n (ToServantApi routes) ~ ToServant routes (AsClientT n)) 
=> (forall x. m x -> n x)

natural transformation

-> routes (AsClientT n) 

genericClient but with hoistClientMonad in between.