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

Safe Haskell | None
Language | Haskell2010

Servant.Client.Free

Synopsis

- client :: HasClient (Free ClientF) api => Proxy api -> Client (Free ClientF) api
- data ClientF a
  - = RunRequest Request (Response -> a)
  - | Throw ClientError
- module Servant.Client.Core.Reexport

# Documentation

client :: HasClient (Free ClientF) api => Proxy api -> Client (Free ClientF) api Source #

data ClientF a Source #

`ClientF` cannot stream.

Compare to `RunClient`.

Constructors

RunRequest Request (Response -> a) |
Throw ClientError |

#### Instances

Instances details

Functor ClientF Source # |
Instance details Defined in Servant.Client.Core.RunClient Methods fmap :: (a -> b) -> ClientF a -> ClientF b Source # (<$) :: a -> ClientF b -> ClientF a Source #

module Servant.Client.Core.Reexport