Interface EitherTMonadErrorFromMonadError<F extends Kind<F,?>,E>
- All Superinterfaces:
Applicative<EitherT<F,,E, ?>> ApplicativeError<EitherT<F,,E, ?>, E> EitherTMonad<F,,E> Functor<EitherT<F,,E, ?>> Invariant<EitherT<F,,E, ?>> Monad<EitherT<F,,E, ?>> MonadError<EitherT<F,,E, ?>, E> Selective<EitherT<F,E, ?>>
- All Known Subinterfaces:
EitherTMonadDefer<F>,EitherTMonadThrowFromMonadThrow<F>
interface EitherTMonadErrorFromMonadError<F extends Kind<F,?>,E>
extends MonadError<EitherT<F,E,?>,E>, EitherTMonad<F,E>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionhandleErrorWith(Kind<EitherT<F, E, ?>, A> value, Function1<? super E, ? extends Kind<EitherT<F, E, ?>, ? extends A>> handler) static <F extends Kind<F,?>, E>
EitherTMonadErrorFromMonadError<F, E> instance(MonadError<F, E> monadErrorF) MonadError<F, E> monadF()raiseError(E error) Methods inherited from interface com.github.tonivade.purefun.typeclasses.Applicative
first, last, mapN, mapN, mapN, mapN, mapN, mapN, mapN, mapN, tuple, tuple, tuple, tupleMethods inherited from interface com.github.tonivade.purefun.typeclasses.ApplicativeError
attempt, fromEither, handleError, recover, recoverWithMethods inherited from interface com.github.tonivade.purefun.instances.EitherTMonad
flatMap, pureMethods inherited from interface com.github.tonivade.purefun.typeclasses.Monad
andThen, ap, flatten, map, select, tailRecM, useMethods inherited from interface com.github.tonivade.purefun.typeclasses.MonadError
ensure, repeat, repeatOrElse, repeatOrElseEither, retry, retryOrElse, retryOrElseEither
-
Method Details
-
instance
static <F extends Kind<F,?>, EitherTMonadErrorFromMonadError<F,E> E> instance(MonadError<F, E> monadErrorF) -
monadF
MonadError<F,E> monadF() -
raiseError
- Specified by:
raiseErrorin interfaceApplicativeError<F extends Kind<F,?>, E>
-
handleErrorWith
default <A> EitherT<F,E, handleErrorWithA> (Kind<EitherT<F, E, ?>, A> value, Function1<? super E, ? extends Kind<EitherT<F, E, ?>, ? extends A>> handler) - Specified by:
handleErrorWithin interfaceApplicativeError<F extends Kind<F,?>, E>
-