Safe Haskell | None |
---|---|
Language | Haskell2010 |
Polysemy.JSONFileKVStore
Synopsis
- newtype JSONParseException = JSONParseException String
- runKVStoreAsJSONFileStore :: (Members '[Embed IO, Error JSONParseException] r, FromJSONKey k, ToJSONKey k, FromJSON v, ToJSON v, Ord k) => Path b File -> Sem (KVStore k v ': r) a -> Sem r a
- eitherDecodeOrCreate :: (ToJSON a, FromJSON a, MonadIO m) => Path b File -> a -> m (Either String a)
Documentation
newtype JSONParseException Source #
Constructors
JSONParseException String |