@@ -93,8 +93,9 @@ position :<|> hello :<|> marketing = client api
94`client api` returns client functions for our _entire_ API, combined with `:<|>`, which we can pattern match on as above. You could say `client` "calculates" the correct type and number of client functions for the API type it is given (via a `Proxy`), as well as their implementations.
94`client api` returns client functions for our _entire_ API, combined with `:<|>`, which we can pattern match on as above. You could say `client` "calculates" the correct type and number of client functions for the API type it is given (via a `Proxy`), as well as their implementations.
96−If there is an `EmptyAPI` within your API, this matches the `EmptyClient`
96+If you have an `EmptyAPI` in your API, servant-client will hand you a value of
97−constructor:
97+type `EmptyClient` in the corresponding slot, where `data EmptyClient =
98+EmptyClient`, as a way to indicate that you can't do anything useful with it.
99``` haskell ignore
100``` haskell ignore
100type API' = API :<|> EmptyAPI
101type API' = API :<|> EmptyAPI