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

Modulevault-0.3.1.5Haskell2010

Data.Vault.ST.Lazy

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

The Vault type in this module is strict in the keys but lazy in the values.

  • 3 types
  • 9 values
  • Packagevault-0.3.1.5
  • Exports12
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceLazy.hs

Vault

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