Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
treeowl opened this issue Jun 17, 2018 · 0 comments
Open

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

treeowl opened this issue Jun 17, 2018 · 0 comments

Comments

@treeowl
Copy link
Contributor

treeowl commented Jun 17, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant