- All Superinterfaces:
Applicative<EitherT<F,E,?>>, ApplicativeError<EitherT<F,E,?>,E>, Bracket<EitherT<F,E,?>,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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tonivade.purefun.typeclasses.Applicative
Applicative.Map2<F extends Kind<F,?>,A,B>, Applicative.Map3<F extends Kind<F,?>,A,B,C>, Applicative.Map4<F extends Kind<F,?>,A,B,C,D>, Applicative.Map5<F extends Kind<F,?>,A,B,C,D,E>
-
Method Summary
bracket(Kind<EitherT<F,E,?>,? extends A> acquire,
Function1<? super A,? extends Kind<EitherT<F,E,?>,? extends B>> use,
Function1<? super A,? extends Kind<EitherT<F,E,?>,Unit>> release)
Methods inherited from interface com.github.tonivade.purefun.typeclasses.Applicative
first, last, mapN, mapN, mapN, mapN, mapN, mapN, mapN, mapN, pure, tuple, tuple, tuple, tuple
Methods inherited from interface com.github.tonivade.purefun.typeclasses.Functor
imap, lift
-
Method Details
-
-
-
bracket
default <A,
B> EitherT<F,E,B> bracket(Kind<EitherT<F,E,?>,? extends A> acquire,
Function1<? super A,? extends Kind<EitherT<F,E,?>,? extends B>> use,
Function1<? super A,? extends Kind<EitherT<F,E,?>,Unit>> release)
- Specified by:
bracket in interface Bracket<F extends Kind<F,?>,E>