Interface StateTMonadError<F extends Kind<F,?>,S,E>
- All Superinterfaces:
Applicative<StateT<F,,S, ?>> ApplicativeError<StateT<F,,S, ?>, E> Functor<StateT<F,,S, ?>> Invariant<StateT<F,,S, ?>> Monad<StateT<F,,S, ?>> MonadError<StateT<F,,S, ?>, E> Selective<StateT<F,,S, ?>> StateTMonad<F,S>
interface StateTMonadError<F extends Kind<F,?>,S,E>
extends MonadError<StateT<F,S,?>,E>, StateTMonad<F,S>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionhandleErrorWith(Kind<StateT<F, S, ?>, A> value, Function1<? super E, ? extends Kind<StateT<F, S, ?>, ? extends A>> handler) static <F extends Kind<F,?>, S, E>
StateTMonadError<F, S, 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.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.typeclasses.Selective
allS, allS, andS, anyS, anyS, branch, ifS, orS, whenSMethods inherited from interface com.github.tonivade.purefun.instances.StateTMonad
flatMap, pure
-
Method Details
-
instance
-
monadF
MonadError<F,E> monadF() -
raiseError
- Specified by:
raiseErrorin interfaceApplicativeError<F extends Kind<F,?>, S>
-
handleErrorWith
default <A> StateT<F,S, handleErrorWithA> (Kind<StateT<F, S, ?>, A> value, Function1<? super E, ? extends Kind<StateT<F, S, ?>, ? extends A>> handler) - Specified by:
handleErrorWithin interfaceApplicativeError<F extends Kind<F,?>, S>
-