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 CanRecover #118

Closed
kevin-lee opened this issue Aug 31, 2020 · 0 comments · Fixed by #119
Closed

Add CanRecover #118

kevin-lee opened this issue Aug 31, 2020 · 0 comments · Fixed by #119
Assignees
Labels
task Task v1 Effectie v1
Milestone

Comments

@kevin-lee
Copy link
Owner

Task

Summary

Add CanRecover[F[_]]

Project Details

Version: 1.2.0

Description

trait CanRecover[F[_]] {
  type Xor[A, B]
  type XorT[A, B]

  def recoverFromNonFatalWith[A, AA >: A](fa: => F[A])(handleError: PartialFunction[Throwable, F[AA]]): F[AA]

  def recoverEitherTFromNonFatalWith[A, AA >: A, B, BB >: B](
    efab: => XorT[A, B]
  )(
    handleError: PartialFunction[Throwable, F[Xor[AA, BB]]]
  ): XorT[AA, BB]

  def recoverFromNonFatal[A, AA >: A](fa: => F[A])(handleError: PartialFunction[Throwable, AA]): F[AA]

  def recoverEitherTFromNonFatal[A, AA >: A, B, BB >: B](
    efab: => XorT[A, B]
  )(
    handleError: PartialFunction[Throwable, Xor[AA, BB]]
  ): XorT[AA, BB]

}
@kevin-lee kevin-lee added the task Task label Aug 31, 2020
@kevin-lee kevin-lee added this to the milestone8 milestone Aug 31, 2020
@kevin-lee kevin-lee self-assigned this Aug 31, 2020
kevin-lee added a commit that referenced this issue Sep 1, 2020
kevin-lee added a commit that referenced this issue Sep 1, 2020
@kevin-lee kevin-lee added the v1 Effectie v1 label Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Task v1 Effectie v1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant