commercialhaskell / rio

A standard library for Haskell
Other
838 stars 54 forks source link

`Alternative m` not included #191

Closed ekalosak closed 5 years ago

ekalosak commented 5 years ago

In writing database interactions that are general enough to handle Maybe and [], empty as provided by class Applicative f => Alternative f is necessary and sufficient. However, the Alternative f functor class is not included in RIO. Monoid m a requires Semigroup a which is unnecessarily restrictive and Functor f is not sufficient.

Are there any plans to work Alternative f into RIO?

ekalosak commented 5 years ago

Found it included, I had just missed it.