Skip to content

Commit

Permalink
Use using instead of implicit for scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Mar 6, 2025
1 parent dd5f465 commit cb59bec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/main/scala-3/cats/mtl/HandleVariant.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ trait HandleVariant { this: Handle.type =>

final class AdHocSyntaxWired[E]:

def apply[F[_], A](body: Handle[F, E] ?=> F[A])(
implicit F: ApplicativeThrow[F]): Inner[F, A] =
def apply[F[_], A](body: Handle[F, E] ?=> F[A])(using ApplicativeThrow[F]): Inner[F, A] =
new Inner(body)

final class Inner[F[_], A](body: Handle[F, E] ?=> F[A])(implicit F: ApplicativeThrow[F]):
final class Inner[F[_], A](body: Handle[F, E] ?=> F[A])(using ApplicativeThrow[F]):
def rescue(h: E => F[A]): F[A] =
val Marker = new AnyRef

Expand Down

0 comments on commit cb59bec

Please sign in to comment.