heftia-effects-0.5.0.0: higher-order algebraic effects done right
Copyright(c) 2024 Sayo Koyoneda
LicenseMPL-2.0 (see the LICENSE file)
Maintainerymdfield@outlook.jp
Portabilityportable
Safe HaskellNone
LanguageGHC2021

Control.Monad.Hefty.KVStore

Description

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 #