HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleservant-auth-server-0.4.9.2Haskell2010

Servant.Auth.Server.Internal.Types

  • 2 types
datadata AuthResult val
#

The result of an authentication attempt.

Constructors

  • BadPassword
  • NoSuchUser
  • Authenticated val

    Authentication succeeded.

  • Indefinite

    If an authentication procedure cannot be carried out - if for example it expects a password and username in a header that is not present - Indefinite is returned. This indicates that other authentication methods should be tried.

Instances15Monad, Functor, Applicative, Foldable, Traversable, Alternative, …
newtypenewtype AuthCheck val
#

An AuthCheck is the function used to decide the authentication status (the AuthResult) of a request. Different AuthChecks may be combined as a Monoid or Alternative; the semantics of this is that the *first* non-Indefinite result from left to right is used and the rest are ignored.

Constructors

Instances13Monad, Functor, MonadFail, Applicative, Alternative, MonadPlus, …