Safe Haskell | None |
---|---|

Language | Haskell2010 |

## Synopsis

- data KVStore k v m a where
- lookupKV :: forall k v r. Member (KVStore k v) r => k -> Sem r (Maybe v)
- writeKV :: Member (KVStore k v) r => k -> v -> Sem r ()
- deleteKV :: Member (KVStore k v) r => k -> Sem r ()
- updateKV :: forall k v r. Member (KVStore k v) r => k -> Maybe v -> Sem r ()
- runKVStoreAsState :: Ord k => Sem (KVStore k v ': r) a -> Sem (State (Map k v) ': r) a
- runKVStorePurely :: Ord k => Map k v -> Sem (KVStore k v ': r) a -> Sem r (Map k v, a)

# Effect

data KVStore k v m a where Source #

Models things like Redis, HTTP GET/POST, etc. Things that are keyed, have a value, and may or may not be there.

## Instances

type DefiningModule (KVStore :: Type -> Type -> k -> Type -> Type) Source # | |

Defined in Polysemy.KVStore |