I want to have modifyTVarS :: TVar s -> StateT s STM a -> STM a because it is often more convenient than modifyTVar.
We had a similar function in serokell-utils, but it is too large to be depended on for such a minor purpose. I think having this thing in universum is justified as we already export many methods related to concurrency.
I want to have
modifyTVarS :: TVar s -> StateT s STM a -> STM a
because it is often more convenient thanmodifyTVar
.We had a similar function in serokell-utils, but it is too large to be depended on for such a minor purpose. I think having this thing in universum is justified as we already export many methods related to concurrency.
A similar method is worth having for
modifyMVar
.