Returns an interpreter of KeyValueStore[K, V, ?] into Task, given a
TaskRef[Map[K, V]].
Interpret KeyValueStore[K, V, ?] into AtomicRef[Map[K, V], ?], plus Free.
Interpret KeyValueStore[K, V, ?] into AtomicRef[Map[K, V], ?], plus Free.
Usage: toAtomicRef[K, V]().
Returns an interpreter of KeyValueStore[K, V, ?] into F[S, ?],
given a Lens[S, Map[K, V]] and MonadState[F, S].
Returns an interpreter of KeyValueStore[K, V, ?] into F[S, ?],
given a Lens[S, Map[K, V]] and MonadState[F, S].
NB: Uses partial application of F[_, _] for better type inference, usage:
toState[F](lens)