HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulepolysemy-kvstore-0.1.3.0Haskell2010

Polysemy.KVStore

Contents
  1. Effect
  2. Actions
  3. Interpreters
Synopsis

Effect

Actions

Interpreters

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.