HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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