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

Empty effect #196

Merged
merged 37 commits into from Sep 8, 2019
Merged

Empty effect #196

merged 37 commits into from Sep 8, 2019

Conversation

robrix
Copy link
Collaborator

@robrix robrix commented Aug 25, 2019

This PR defines an Abort effect which simply ends the current computation. It can be used for cases where you want early returns, empty without <|>, or throwError () without catchError.

I’m also considering rewriting this as a refactoring of NonDet to split its constructors into two different effect types. Edit: cf #199.

@robrix robrix changed the title Abort effect Empty effect Sep 2, 2019
@robrix robrix marked this pull request as ready for review September 2, 2019 22:55
@robrix robrix requested a review from patrickt September 3, 2019 14:04
src/Control/Effect/Empty.hs Show resolved Hide resolved
src/Control/Effect/Empty.hs Show resolved Hide resolved
src/Control/Effect/Empty.hs Show resolved Hide resolved
@robrix robrix requested a review from patrickt September 6, 2019 18:00
@robrix robrix merged commit 589e1ed into master Sep 8, 2019
@robrix robrix deleted the abort-effect branch September 8, 2019 15:53
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

2 participants