roboservant-0.1.0.3: Automatic session-aware servant testing
Safe HaskellSafe-Inferred
LanguageHaskell2010

Roboservant.Client

Documentation

class ToReifiedClientApi api where Source #

Instances

Instances details
ToReifiedClientApi ('[] :: [Type]) Source # 
Instance details

Defined in Roboservant.Client

(NormalizeFunction (Client ClientM endpoint), Normal (Client ClientM endpoint) ~ Curried (EndpointArgs endpoint) (ReaderT ClientEnv IO (Either InteractionError (NonEmpty (Dynamic, Int)))), ToReifiedClientApi endpoints, RecordCurry' (EndpointArgs endpoint), ToReifiedEndpoint endpoint) => ToReifiedClientApi (endpoint ': endpoints) Source # 
Instance details

Defined in Roboservant.Client

Methods

toReifiedClientApi :: ClientBundled (endpoint ': endpoints) -> Proxy (endpoint ': endpoints) -> ClientEnv -> ReifiedApi Source #

data ClientBundled endpoints where Source #

Constructors

AClientEndpoint :: Client ClientM endpoint -> ClientBundled endpoints -> ClientBundled (endpoint ': endpoints) 
NoClientEndpoints :: ClientBundled '[] 

class FlattenClient api where Source #

Instances

Instances details
(FlattenClient api, Endpoints endpoint ~ '[endpoint]) => FlattenClient (endpoint :<|> api) Source # 
Instance details

Defined in Roboservant.Client

Methods

flattenClient :: Client ClientM (endpoint :<|> api) -> ClientBundled (Endpoints (endpoint :<|> api)) Source #

Endpoints api ~ '[api] => FlattenClient (x :> api) Source # 
Instance details

Defined in Roboservant.Client

FlattenClient (Verb method statusCode contentTypes responseType) Source # 
Instance details

Defined in Roboservant.Client

Methods

flattenClient :: Client ClientM (Verb method statusCode contentTypes responseType) -> ClientBundled (Endpoints (Verb method statusCode contentTypes responseType)) Source #

mapCurried :: forall ts a b. RecordCurry' ts => (a -> b) -> Curried ts a -> Curried ts b Source #

Orphan instances

(Typeable x, Hashable x, Breakdown x) => NormalizeFunction (ClientM x) Source # 
Instance details

Associated Types

type Normal (ClientM x) Source #

Methods

normalize :: ClientM x -> Normal (ClientM x) Source #