Skip to content

Relax parOneOf and parOneOfMap constraints #23

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

Closed
natefaubion opened this issue Oct 30, 2017 · 4 comments
Closed

Relax parOneOf and parOneOfMap constraints #23

natefaubion opened this issue Oct 30, 2017 · 4 comments

Comments

@natefaubion
Copy link
Contributor

They require Alternative, which Aff does not satisfy. And since Aff is one of the only interesting things that implements Parallel, I feel like we should relax them to Applicative + Plus.

@paf31
Copy link
Contributor

paf31 commented Oct 30, 2017

Didn't we discuss this before? I thought we decided there were useful things you could prove only with Alternative? Anyway, what does it gain us to change to Applicative and Plus? Isn't Aff an Alternative?

@natefaubion
Copy link
Contributor Author

No, it does not satisfy the Alternative laws

@natefaubion
Copy link
Contributor Author

natefaubion commented Oct 30, 2017

Or at least, it doesn't have an instance. Maybe I was too aggressive when removing bad instances in Aff 4? I thought I remember it failing to be an Alternative for some reason.

@natefaubion
Copy link
Contributor Author

ParAff is the one with the Alternative instance, duh.

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

2 participants