HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleservant-auth-server-0.4.9.0Haskell2010

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, …