Relax parOneOf and parOneOfMap constraints
natefaubion opened this issue · 4 comments
natefaubion commented
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 commented
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 commented
No, it does not satisfy the Alternative laws
natefaubion commented
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 commented
ParAff is the one with the Alternative instance, duh.