purescript-foldable-traversable icon indicating copy to clipboard operation
purescript-foldable-traversable copied to clipboard

Add oneOf1 and oneOfMap1 to Data.Semigroup.Foldable

Open kl0tl opened this issue 5 years ago • 0 comments

In https://github.com/purescript/purescript-control/issues/63 we‘re considering to merge Plus into Alternative and then remove the illegal instance of Plus for Aff, Plus and Alternative for ParAff and add an Alt instance for Effect.

As noted by @natefaubion in https://github.com/purescript/purescript-control/issues/63#issuecomment-709658435, this would prevent Control.Parallel.parOneOf and Control.Parallel.parOneOfMap to work with Aff, but we could rewrite those combinators in terms of oneOf1 and oneOfMap1.

kl0tl avatar Oct 24 '20 16:10 kl0tl