Skip to content

v2.0.0-beta6

Compare
Choose a tag to compare
@kevin-lee kevin-lee released this 11 Feb 12:51
· 193 commits to main since this release
d87b3c6

2.0.0-beta6 - 2023-02-11

Change

  • Remove implicit fxCtor: FxCtor[F] param from the catch methods in CanCatch (#480)

    The following methods in CanCatch

    def catchNonFatal[A, B](
      fb: => F[B]
    )(
      f: PartialFunction[Throwable, A]
    )(
      implicit fxCtor: FxCtor[F]
    ): F[Either[A, B]]
    
    def catchNonFatalEither[A, AA >: A, B](
      fab: => F[Either[A, B]]
    )(
      f: PartialFunction[Throwable, AA]
    )(
      implicit fxCtor: FxCtor[F]
    ): F[Either[AA, B]] 

    have been changed to

    def catchNonFatal[A, B](
      fb: => F[B]
    )(
      f: PartialFunction[Throwable, A]
    ): F[Either[A, B]]
    
    def catchNonFatalEither[A, AA >: A, B](
      fab: => F[Either[A, B]]
    )(
      f: PartialFunction[Throwable, AA]
    ): F[Either[AA, B]]