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

evalEmpty & execEmpty handlers #371

Merged
merged 11 commits into from
Mar 15, 2020
Merged

evalEmpty & execEmpty handlers #371

merged 11 commits into from
Mar 15, 2020

Conversation

robrix
Copy link
Contributor

@robrix robrix commented Mar 15, 2020

This PR adds evalEmpty & execEmpty handlers for the Empty carriers, respectively discarding the result & returning a Bool indicating whether control exited normally.

@@ -8,6 +8,8 @@

- Defines `Algebra` instances for `Control.Monad.Trans.Maybe.MaybeT`, `Control.Monad.Trans.RWS.CPS`, and `Control.Monad.Trans.Writer.CPS`. ([#366](https://github.com/fused-effects/fused-effects/pull/366))

- Adds `evalEmpty` and `execEmpty` handlers for the `Empty` carriers as conveniences for using `empty` to signal early returns. ([#371](https://github.com/fused-effects/fused-effects/pull/371))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were originally defined in Starlight.

@robrix robrix merged commit c5f5ca8 into master Mar 15, 2020
@robrix robrix deleted the empty-inside branch March 15, 2020 23:38
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

Successfully merging this pull request may close these issues.

None yet

1 participant