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-0.20.2Haskell2010

Servant.API.Vault

  • 1 type
  • Packageservant-0.20.2
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceIO.h

| Use Vault in your API types to provide access to the Vault of the request, which is a location shared by middlewares and applications to store arbitrary data. See vault for more details on how to actually use the vault in your handlers

Example:

Example1 expression
type API = Vault :> Get '[JSON] String
typetype Vault = Vault RealWorld
#

A persistent store for values of arbitrary types.

This variant is the simplest and creates keys in the IO monad. See the module Data.Vault.ST if you want to use it with the ST monad instead.

Instances2HasLink, MkLink