HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulepolysemy-kvstore-0.1.3.0Haskell2010

Polysemy.KVStore

  • 1 type
  • 11 values

Effect

1 declaration

Actions

7 declarations

Interpreters

4 declarations
valuerunKVStoreAsKVStore
  1. :: (k -> k')

    A function to transform the key into the interpreted key.

  2. -> (v -> v')

    A function to transform the value into the interpreted value.

  3. -> (v' -> v)

    A function to transform the interpreted key back into the current value.

  4. -> Sem (KVStore k v ': r) a
  5. -> Sem (KVStore k' v' ': r) a
#

Run a KVStore in terms of another KVStore by way of pure key and value transformations.

valuerunKVStoreAsKVStoreSem
  1. :: Members '[KVStore k' v'] r
  2. => (k -> Sem r k')

    A function to transform the key into the interpreted key.

  3. -> (v -> Sem r v')

    A function to transform the value into the interpreted value.

  4. -> (v' -> Sem r v)

    A function to transform the interpreted value back into the current value.

  5. -> Sem (KVStore k v ': r) a
  6. -> Sem r a
#

Run a KVStore in terms of another KVStore by way of transforming the keys and values with Sem functions.