@@ -93,8 +93,9 @@ position :<|> hello :<|> marketing = client api
9393
9494`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.
9595
96−If there is an `EmptyAPI` within your API, this matches the `EmptyClient`
97−constructor:
96+If you have an `EmptyAPI` in your API, servant-client will hand you a value of
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.
9899
99100``` haskell ignore
100101type API' = API :<|> EmptyAPI