@@ -56,8 +56,8 @@ import Servant.Common.Req
5656-- > myApi :: Proxy MyApi
5757-- > myApi = Proxy
5858-- >
59−-- > getAllBooks :: Manager -> BaseUrl -> ClientM [Book]
60−-- > postNewBook :: Book -> Manager -> BaseUrl -> ClientM Book
59+-- > getAllBooks :: ClientM [Book]
60+-- > postNewBook :: Book -> ClientM Book
6161-- > (getAllBooks :<|> postNewBook) = client myApi
6262client :: HasClient api => Proxy api -> Client api
6363client p = clientWithRoute p defReq
@@ -80,8 +80,8 @@ class HasClient api where
8080-- > myApi :: Proxy MyApi
8181-- > myApi = Proxy
8282-- >
83−-- > getAllBooks :: Manager -> BaseUrl -> ClientM [Book]
84−-- > postNewBook :: Book -> Manager -> BaseUrl -> ClientM Book
83+-- > getAllBooks :: ClientM [Book]
84+-- > postNewBook :: Book -> ClientM Book
8585-- > (getAllBooks :<|> postNewBook) = client myApi
8686instance (HasClient a, HasClient b) => HasClient (a :<|> b) where
8787 type Client (a :<|> b) = Client a :<|> Client b
@@ -105,7 +105,7 @@ instance (HasClient a, HasClient b) => HasClient (a :<|> b) where
105105-- > myApi :: Proxy MyApi
106106-- > myApi = Proxy
107107-- >
108−-- > getBook :: Text -> Manager -> BaseUrl -> ClientM Book
108+-- > getBook :: Text -> ClientM Book
109109-- > getBook = client myApi
110110-- > -- then you can just use "getBook" to query that endpoint
111111instance (KnownSymbol capture, ToHttpApiData a, HasClient api)
@@ -137,7 +137,7 @@ instance (KnownSymbol capture, ToHttpApiData a, HasClient api)
137137-- > myApi :: Proxy
138138-- > myApi = Proxy
139139--
140−-- > getSourceFile :: [Text] -> Manager -> BaseUrl -> ClientM SourceFile
140+-- > getSourceFile :: [Text] -> ClientM SourceFile
141141-- > getSourceFile = client myApi
142142-- > -- then you can use "getSourceFile" to query that endpoint
143143instance (KnownSymbol capture, ToHttpApiData a, HasClient sublayout)
@@ -177,7 +177,7 @@ instance OVERLAPPING_
177177 = ClientM (Headers ls a)
178178 clientWithRoute Proxy req = do
179179 let method = reflectMethod (Proxy :: Proxy method)
180− (hdrs, resp) <- performRequestCT (Proxy :: Proxy ct) method req
180+ (hdrs, resp) <- performRequestCT (Proxy :: Proxy ct) method req
181181 return $ Headers { getResponse = resp
182182 , getHeadersHList = buildHeadersTo hdrs
183183 }
@@ -189,7 +189,7 @@ instance OVERLAPPING_
189189 = ClientM (Headers ls NoContent)
190190 clientWithRoute Proxy req = do
191191 let method = reflectMethod (Proxy :: Proxy method)
192− hdrs <- performRequestNoBody method req
192+ hdrs <- performRequestNoBody method req
193193 return $ Headers { getResponse = NoContent
194194 , getHeadersHList = buildHeadersTo hdrs
195195 }
@@ -216,7 +216,7 @@ instance OVERLAPPING_
216216-- > myApi :: Proxy MyApi
217217-- > myApi = Proxy
218218-- >
219−-- > viewReferer :: Maybe Referer -> Manager -> BaseUrl -> ClientM Book
219+-- > viewReferer :: Maybe Referer -> ClientM Book
220220-- > viewReferer = client myApi
221221-- > -- then you can just use "viewRefer" to query that endpoint
222222-- > -- specifying Nothing or e.g Just "http://haskell.org/" as arguments
@@ -266,7 +266,7 @@ instance HasClient api
266266-- > myApi :: Proxy MyApi
267267-- > myApi = Proxy
268268-- >
269−-- > getBooksBy :: Maybe Text -> Manager -> BaseUrl -> ClientM [Book]
269+-- > getBooksBy :: Maybe Text -> ClientM [Book]
270270-- > getBooksBy = client myApi
271271-- > -- then you can just use "getBooksBy" to query that endpoint.
272272-- > -- 'getBooksBy Nothing' for all books
@@ -310,7 +310,7 @@ instance (KnownSymbol sym, ToHttpApiData a, HasClient api)
310310-- > myApi :: Proxy MyApi
311311-- > myApi = Proxy
312312-- >
313−-- > getBooksBy :: [Text] -> Manager -> BaseUrl -> ClientM [Book]
313+-- > getBooksBy :: [Text] -> ClientM [Book]
314314-- > getBooksBy = client myApi
315315-- > -- then you can just use "getBooksBy" to query that endpoint.
316316-- > -- 'getBooksBy []' for all books
@@ -349,7 +349,7 @@ instance (KnownSymbol sym, ToHttpApiData a, HasClient api)
349349-- > myApi :: Proxy MyApi
350350-- > myApi = Proxy
351351-- >
352−-- > getBooks :: Bool -> Manager -> BaseUrl -> ClientM [Book]
352+-- > getBooks :: Bool -> ClientM [Book]
353353-- > getBooks = client myApi
354354-- > -- then you can just use "getBooks" to query that endpoint.
355355-- > -- 'getBooksBy False' for all books
@@ -395,7 +395,7 @@ instance HasClient Raw where
395395-- > myApi :: Proxy MyApi
396396-- > myApi = Proxy
397397-- >
398−-- > addBook :: Book -> Manager -> BaseUrl -> ClientM Book
398+-- > addBook :: Book -> ClientM Book
399399-- > addBook = client myApi
400400-- > -- then you can just use "addBook" to query that endpoint
401401instance (MimeRender ct a, HasClient api)