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

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

Modulevault-0.3.2.0Haskell2010

Data.Vault.ST.Strict

A persistent store for values of arbitrary types. Variant for the ST monad.

The Vault type in this module is strict in both keys and values.

  • 3 types
  • 9 values
  • Packagevault-0.3.2.0
  • Exports12
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceStrict.hs

Vault

9 declarations
newtypenewtype Vault s
#
Instances2Semigroup, Monoid
  • Semigroup (Vault s)Defined in vault-0.3.2.0 · Data.Vault.ST.Strict
  • Monoid (Vault s)Defined in vault-0.3.2.0 · Data.Vault.ST.Strict
newtypenewtype Key s a
#
valuenewKey :: ST s (Key s a)
#

Create a new key for use with a vault.

valueinsert :: Key s a -> a -> Vault s -> Vault s
#

Insert a value for a given key. Overwrites any previous value.

valueadjust :: (a -> a) -> Key s a -> Vault s -> Vault s
#

Adjust the value for a given key if it's present in the vault.

Locker

3 declarations