@@ -108,7 +108,7 @@ data EmptyClient = EmptyClient deriving (Eq, Show, Bounded, Enum)
108-- > (getAllBooks :<|> EmptyClient) = client myApi
108-- > (getAllBooks :<|> EmptyClient) = client myApi
109instance HasClient m EmptyAPI where
109instance HasClient m EmptyAPI where
110 type Client m EmptyAPI = EmptyClient
110 type Client m EmptyAPI = EmptyClient
111− clientWithRoute pm Proxy _ = EmptyClient
111+ clientWithRoute _pm Proxy _ = EmptyClient
113-- | If you use a 'Capture' in one of your endpoints in your API,
113-- | If you use a 'Capture' in one of your endpoints in your API,
114-- the corresponding querying function will automatically take
114-- the corresponding querying function will automatically take
@@ -178,7 +178,7 @@ instance OVERLAPPABLE_
178 (RunClient m ct ([H.Header], a), MimeUnrender ct a, ReflectMethod method, cts' ~ (ct ': cts)
178 (RunClient m ct ([H.Header], a), MimeUnrender ct a, ReflectMethod method, cts' ~ (ct ': cts)
179 ) => HasClient m (Verb method status cts' a) where
179 ) => HasClient m (Verb method status cts' a) where
180 type Client m (Verb method status cts' a) = m a
180 type Client m (Verb method status cts' a) = m a
181− clientWithRoute pm Proxy req = do
181+ clientWithRoute _pm Proxy req = do
182 (_hdrs, a) :: ([H.Header], a) <- runRequest (Proxy :: Proxy ct) method req
182 (_hdrs, a) :: ([H.Header], a) <- runRequest (Proxy :: Proxy ct) method req
184 where method = reflectMethod (Proxy :: Proxy method)
184 where method = reflectMethod (Proxy :: Proxy method)
@@ -188,7 +188,7 @@ instance OVERLAPPING_
188 , ReflectMethod method) => HasClient m (Verb method status cts NoContent) where
188 , ReflectMethod method) => HasClient m (Verb method status cts NoContent) where
189 type Client m (Verb method status cts NoContent)
189 type Client m (Verb method status cts NoContent)
190 = m NoContent
190 = m NoContent
191− clientWithRoute pm Proxy req = do
191+ clientWithRoute _pm Proxy req = do
192 _hdrs :: [H.Header] <- runRequest (Proxy :: Proxy NoContent) method req
192 _hdrs :: [H.Header] <- runRequest (Proxy :: Proxy NoContent) method req
193 return NoContent
193 return NoContent
194 where method = reflectMethod (Proxy :: Proxy method)
194 where method = reflectMethod (Proxy :: Proxy method)
@@ -200,7 +200,7 @@ instance OVERLAPPING_
200 ) => HasClient m (Verb method status cts' (Headers ls a)) where
200 ) => HasClient m (Verb method status cts' (Headers ls a)) where
201 type Client m (Verb method status cts' (Headers ls a))
201 type Client m (Verb method status cts' (Headers ls a))
202 = m (Headers ls a)
202 = m (Headers ls a)
203− clientWithRoute pm Proxy req = do
203+ clientWithRoute _pm Proxy req = do
204 let method = reflectMethod (Proxy :: Proxy method)
204 let method = reflectMethod (Proxy :: Proxy method)
205 (hdrs, resp) <- runRequest (Proxy :: Proxy ct) method req
205 (hdrs, resp) <- runRequest (Proxy :: Proxy ct) method req
206 return $ Headers { getResponse = resp
206 return $ Headers { getResponse = resp
@@ -213,7 +213,7 @@ instance OVERLAPPING_
213 ) => HasClient m (Verb method status cts (Headers ls NoContent)) where
213 ) => HasClient m (Verb method status cts (Headers ls NoContent)) where
214 type Client m (Verb method status cts (Headers ls NoContent))
214 type Client m (Verb method status cts (Headers ls NoContent))
215 = m (Headers ls NoContent)
215 = m (Headers ls NoContent)
216− clientWithRoute pm Proxy req = do
216+ clientWithRoute _pm Proxy req = do
217 let method = reflectMethod (Proxy :: Proxy method)
217 let method = reflectMethod (Proxy :: Proxy method)
218 hdrs <- runRequest (Proxy :: Proxy NoContent) method req
218 hdrs <- runRequest (Proxy :: Proxy NoContent) method req
219 return $ Headers { getResponse = NoContent
219 return $ Headers { getResponse = NoContent
@@ -416,7 +416,7 @@ instance (RunClient m NoContent (Int, ByteString, MediaType, [HTTP.Header], Resp
416 = H.Method -> m (Int, ByteString, MediaType, [HTTP.Header], Response ByteString)
416 = H.Method -> m (Int, ByteString, MediaType, [HTTP.Header], Response ByteString)
418 clientWithRoute :: Proxy m -> Proxy Raw -> Req -> Client m Raw
418 clientWithRoute :: Proxy m -> Proxy Raw -> Req -> Client m Raw
419− clientWithRoute pm Proxy req httpMethod = do
419+ clientWithRoute _pm Proxy req httpMethod = do
420 runRequest (Proxy :: Proxy NoContent) httpMethod req
420 runRequest (Proxy :: Proxy NoContent) httpMethod req
422-- | If you use a 'ReqBody' in one of your endpoints in your API,
422-- | If you use a 'ReqBody' in one of your endpoints in your API,