scalaz / ioeffect

An effect monad for Scalaz 7.2
Other
55 stars 9 forks source link

MonadPlus[IO[Unit, ?]] #60

Closed fommil closed 6 years ago

fommil commented 6 years ago

close #59

emilypi commented 6 years ago

If there's a performance penalty for using E, so be it. That's the cost of using MonadPlus in general, and fixing the error type to () makes this a trivial "monoid" and therefore mostly useless.

fommil commented 6 years ago

@emilypi MonadPlus would come with the Monad, so it'd be a cost too high IMO.

We can always add monoid support later, but there is talk of ZIO adding an error typeclass.

emilypi commented 6 years ago

interesting. An error typeclass would be very appreciated.