meanwhile you’d need to use something like `Either...
# arrow
p
meanwhile you’d need to use something like
EitherT<ForIO, MyError, A>
which is slower and boilerplaty
i
I'm already using EitherT in some other places, but that does not enable me to use MonadDefer instance's raiseError, does it? With EitherT I still have to manually handle either inside to computation
the added value of EitherT seems to be more flat computation which is easier to reason if there are many interdependent steps in my use case
e.g. the latter linked
FavoriteUseCase
could be implemented using EitherT and I'd get rid of all the nesting
s
I’m already using EitherT in some other places, but that does not enable me to use MonadDefer instance’s raiseError, does it?
I just checked the
EitherT
effects instances I wrote couple weeks ago and they are fixed to
Throwable
atm.
So we should create a ticket to make it take into account the left side of
Either
.