Closed fommil closed 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.
@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.
interesting. An error typeclass would be very appreciated.
close #59