Fix client tests

This commit is contained in:
Gaël Deest 2021-10-04 14:01:11 +02:00
parent fca59556dd
commit 5f8aaec146
2 changed files with 5 additions and 4 deletions

View file

@ -7,6 +7,7 @@ module Servant.Client.Core.Reexport
HasClient(..) HasClient(..)
, foldMapUnion , foldMapUnion
, matchUnion , matchUnion
, AsClientT
-- * Response (for @Raw@) -- * Response (for @Raw@)
, Response , Response
@ -23,6 +24,7 @@ module Servant.Client.Core.Reexport
, showBaseUrl , showBaseUrl
, parseBaseUrl , parseBaseUrl
, InvalidBaseUrlException , InvalidBaseUrlException
) where ) where

View file

@ -64,13 +64,11 @@ import Servant.API
JSON, MimeRender (mimeRender), MimeUnrender (mimeUnrender), JSON, MimeRender (mimeRender), MimeUnrender (mimeUnrender),
NoContent (NoContent), PlainText, Post, QueryFlag, QueryParam, NoContent (NoContent), PlainText, Post, QueryFlag, QueryParam,
QueryParams, Raw, ReqBody, StdMethod (GET), ToHttpApiData (..), UVerb, Union, QueryParams, Raw, ReqBody, StdMethod (GET), ToHttpApiData (..), UVerb, Union,
WithStatus (WithStatus), addHeader) WithStatus (WithStatus), NamedRoutes, addHeader)
import Servant.API.Generic import Servant.API.Generic ((:-))
import Servant.Client import Servant.Client
import Servant.Client.Generic
import qualified Servant.Client.Core.Auth as Auth import qualified Servant.Client.Core.Auth as Auth
import Servant.Server import Servant.Server
import Servant.Server.Generic
import Servant.Server.Experimental.Auth import Servant.Server.Experimental.Auth
import Servant.Test.ComprehensiveAPI import Servant.Test.ComprehensiveAPI
@ -184,6 +182,7 @@ uverbGetSuccessOrRedirect :: Bool
-> ClientM (Union '[WithStatus 200 Person, -> ClientM (Union '[WithStatus 200 Person,
WithStatus 301 Text]) WithStatus 301 Text])
uverbGetCreated :: ClientM (Union '[WithStatus 201 Person]) uverbGetCreated :: ClientM (Union '[WithStatus 201 Person])
recordRoutes :: RecordRoutes (AsClientT ClientM)
getRoot getRoot
:<|> getGet :<|> getGet