Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convenient syntax for working with F[Either[E, A]] #149

Closed
road21 opened this issue Feb 11, 2020 · 0 comments · Fixed by #169
Closed

Add convenient syntax for working with F[Either[E, A]] #149

road21 opened this issue Feb 11, 2020 · 0 comments · Fixed by #169
Labels
good first issue Good for newcomers

Comments

@road21
Copy link
Contributor

road21 commented Feb 11, 2020

We interested in few handy methods, that would allow to do basic things with F[Either[E, A]] with additional context Monad[F] without wrapping it in EitherT
possible list is

def orElse(f: => F[Either[E, A]]): F[Either[E, A]]
def catchAll(e: E => F[A]): F[A]
def absolve(implicit R: Raise[F, E]): F[A]
def flatMapR[B](f: A => F[B]): F[Either[E, B]]
def flatMapL[E](f: E => F[E1]): F[Either[E1, A]]
def doubleFlatMap[B](f: A => F[Either[E, B]]): F[Either[E, B]]
@road21 road21 added the good first issue Good for newcomers label Feb 11, 2020
Ssstlis pushed a commit to Ssstlis/tofu that referenced this issue Feb 23, 2020
Ssstlis pushed a commit to Ssstlis/tofu that referenced this issue Feb 23, 2020
Ssstlis pushed a commit to Ssstlis/tofu that referenced this issue Feb 25, 2020
Ssstlis pushed a commit to Ssstlis/tofu that referenced this issue Feb 25, 2020
Ssstlis pushed a commit to Ssstlis/tofu that referenced this issue Feb 25, 2020
Ssstlis pushed a commit to Ssstlis/tofu that referenced this issue Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant