Interface EitherTMonadErrorFromMonad<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:
EitherTMonadThrowFromMonad<F>
interface EitherTMonadErrorFromMonad<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,?>, L>
EitherTMonadErrorFromMonad<F, L> 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, monadF, 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
-
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>
-