HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleservant-auth-server-0.4.10.0Haskell2010

Servant.Auth.Server.Internal.Types

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