Copyright | (c) 2024 Sayo Koyoneda |
---|---|
License | MPL-2.0 (see the LICENSE file) |
Maintainer | ymdfield@outlook.jp |
Portability | portable |
Safe Haskell | None |
Language | GHC2021 |
This module provides handlers for the KVStore
effect, comes
from Polysemy.KVStore
in the polysemy-kvstore
package.
Documentation
runKVStorePure :: forall k v (r :: [Type -> Type]) a. Ord k => Map k v -> Eff ('[] :: [EffectH]) (KVStore k v ': r) a -> Eff ('[] :: [EffectH]) r (Map k v, a) Source #
runKVStoreAsState :: forall k v (r :: [EffectF]). (Ord k, State (Map k v) <| r) => Eff ('[] :: [EffectH]) (KVStore k v ': r) ~> Eff ('[] :: [EffectH]) r Source #
module Data.Effect.KVStore