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

Suggestion: add modify_, change modify. #27

Open
artemisSystem opened this issue Jun 27, 2020 · 0 comments
Open

Suggestion: add modify_, change modify. #27

artemisSystem opened this issue Jun 27, 2020 · 0 comments

Comments

@artemisSystem
Copy link
Contributor

Currently, we have modify :: forall s r. (s -> s) -> Run (state :: STATE s | r) Unit.
It would be nice to instead have:
modify :: forall s r. (s -> s) -> Run (state :: STATE s | r) s (returns the new state)
modify_ :: forall s r. (s -> s) -> Run (state :: STATE s | r) Unit (current modify)

This would be a breaking change, but it could be added along with all the changes that are necesscary for 0.14, since they will be breaking as well.

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