parallel icon indicating copy to clipboard operation
parallel copied to clipboard

Would it make sense to embed Eval actions in STM ones?

Open treeowl opened this issue 7 years ago • 0 comments

We can hypothetically write

evalToSTM :: Eval a -> STM a
evalToSTM (Eval (IO m)) = STM m

Would that be a sensible operation? My intuition says yes, but my intuition around STM is fairly limited as yet.

treeowl avatar Jun 17 '18 22:06 treeowl