Polysemy.JSONFileKVStore
newtype JSONParseException Source #
Constructors
Defined in Polysemy.JSONFileKVStore
Methods
(==) :: JSONParseException -> JSONParseException -> Bool #
(/=) :: JSONParseException -> JSONParseException -> Bool #
showsPrec :: Int -> JSONParseException -> ShowS #
show :: JSONParseException -> String #
showList :: [JSONParseException] -> ShowS #
Associated Types
type Rep JSONParseException :: Type -> Type #
from :: JSONParseException -> Rep JSONParseException x #
to :: Rep JSONParseException x -> JSONParseException #
toException :: JSONParseException -> SomeException #
fromException :: SomeException -> Maybe JSONParseException #
displayException :: JSONParseException -> String #
eitherDecodeOrCreate :: (ToJSON a, FromJSON a, MonadIO m) => Path b File -> a -> m (Either String a) Source #
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 Source #