Safe Haskell | None |
---|
Data.Vault.ST
Documentation
data Vault s
A typed, persistent store for values of arbitrary types.
This variant has more complex types so that you can create keys in the ST
monad.
See the module Data.Vault if you'd like to use a simpler version with the IO
monad.
You can also use both variants simultaneously; they share a single representation.
data Key s a
Keys for the vault.
insert :: Key s a -> a -> Vault s -> Vault s
Insert a value for a given key. Overwrites any previous value.