Module

Data.Vault

Package
purescript-vault
Repository
julienchan/purescript-vault

#Vault Source

newtype Vault

A persistent store for values of arbitrary types.

#Key Source

data Key a

Key for an item in vault

#empty Source

empty :: Vault

The empty vault

#newKey Source

newKey :: forall a eff. Eff (ref :: REF | eff) (Key a)

Create a new key for use with a vault.

#insert Source

insert :: forall a. Key a -> a -> Vault -> Vault

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

#delete Source

delete :: forall a. Key a -> Vault -> Vault

Delete a key from the vault.

#lookup Source

lookup :: forall a. Key a -> Vault -> Maybe a

Lookup the value of a key in the vault.

#union Source