polysemy-fskvstore-0.1.2.0: Run a KVStore as a filesystem in polysemy.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Polysemy.FSKVStore

Synopsis

Documentation

type FSKVStore b a = KVStore (Path b File) a Source #

Type synonym for a KVStore indexed by files.

runFSKVStoreRelBS :: Members '[Embed IO] r => Path b Dir -> Sem (KVStore (Path Rel File) ByteString ': r) a -> Sem r a Source #

Run an `FSKVStore Rel ByteString` in the supplied directory in IO.

Since: 0.1.0.0

runFSKVStoreAbsBS :: Members '[Embed IO] r => Sem (FSKVStore Abs ByteString ': r) a -> Sem r a Source #

Run an `FSKVStore Abs ByteString` in IO.

Since: 0.1.0.0

runFSKVStoreRelUtf8 :: Members '[Embed IO] r => Path b Dir -> Sem (FSKVStore Rel Text ': r) a -> Sem r a Source #

Run an `FSKVStore Rel Text` in the supplied directory in IO as UTF8.

Since: 0.1.0.0

runFSKVStoreAbsUtf8 :: Members '[Embed IO] r => Sem (FSKVStore Abs Text ': r) a -> Sem r a Source #

Run an `FSKVStore Abs Text` in IO as UTF8.

Since: 0.1.0.0