Interface OptionTMonadErrorFromMonad<F extends Kind<F,?>>
- All Superinterfaces:
Applicative<OptionT<F,,?>> ApplicativeError<OptionT<F,,?>, Unit> Functor<OptionT<F,,?>> Invariant<OptionT<F,,?>> Monad<OptionT<F,,?>> MonadError<OptionT<F,,?>, Unit> OptionTMonad<F>,Selective<OptionT<F,?>>
interface OptionTMonadErrorFromMonad<F extends Kind<F,?>>
extends MonadError<OptionT<F,?>,Unit>, OptionTMonad<F>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionhandleErrorWith(Kind<OptionT<F, ?>, A> value, Function1<? super Unit, ? extends Kind<OptionT<F, ?>, ? extends A>> handler) static <F extends Kind<F,?>>
OptionTMonadErrorFromMonad<F> raiseError(Unit 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.typeclasses.Monad
andThen, ap, flatten, map, select, tailRecM, useMethods inherited from interface com.github.tonivade.purefun.typeclasses.MonadError
ensure, repeat, repeatOrElse, repeatOrElseEither, retry, retryOrElse, retryOrElseEitherMethods inherited from interface com.github.tonivade.purefun.instances.OptionTMonad
flatMap, monadF, pure
-
Method Details
-
instance
-
raiseError
- Specified by:
raiseErrorin interfaceApplicativeError<OptionT<F extends Kind<F,?>, ?>, Unit>
-
handleErrorWith
default <A> OptionT<F,A> handleErrorWith(Kind<OptionT<F, ?>, A> value, Function1<? super Unit, ? extends Kind<OptionT<F, ?>, ? extends A>> handler) - Specified by:
handleErrorWithin interfaceApplicativeError<OptionT<F extends Kind<F,?>, ?>, Unit>
-