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

Modulevault-0.3.1.5Haskell2010

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.1.5
  • Exports12
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceStrict.hs

Vault

9 declarations
newtypenewtype Vault s
#
Instances2Semigroup, Monoid
  • Semigroup (Vault s)Defined in vault-0.3.1.5 · Data.Vault.ST.Strict
  • Monoid (Vault s)Defined in vault-0.3.1.5 · 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