Fix basic-auth imports in servant-example
This commit is contained in:
parent
683e100aed
commit
95d994a5f5
1 changed files with 2 additions and 4 deletions
|
@ -13,10 +13,8 @@ import GHC.Generics (Generic)
|
|||
import Network.Wai.Handler.Warp (run)
|
||||
import Servant.API ((:<|>) ((:<|>)), (:>), BasicAuth,
|
||||
Get, JSON)
|
||||
import Servant.Server (Config (EmptyConfig),
|
||||
ConfigEntry, Server, serve, (.:))
|
||||
import Servant.Server.Internal.Auth (AuthResult (Authorized, Unauthorized),
|
||||
BasicAuthCheck (BasicAuthCheck))
|
||||
import Servant.Server (BasicAuthResult (Authorized, Unauthorized), Config (EmptyConfig),
|
||||
ConfigEntry, Server, serve, (.:), BasicAuthCheck(BasicAuthCheck))
|
||||
|
||||
-- | let's define some types that our API returns.
|
||||
|
||||
|
|
Loading…
Reference in a new issue