Skip to content

Commit

Permalink
Revert implicit for Resource MonadError instance
Browse files Browse the repository at this point in the history
MonadCancelThrow instance (which is required for the fixed attempt)
is already higher priority than this one. By leaving it implicit,
users will get an actionable deprecation instead of non-compiling code.
  • Loading branch information
lenguyenthanh committed Sep 8, 2024
1 parent cd729a5 commit f00b9cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ private[effect] trait ResourceHOInstances3 extends ResourceHOInstances4 {

private[effect] trait ResourceHOInstances4 extends ResourceHOInstances5 {
@deprecated("Use MonadCancelThrow instances", "3.6.0")
def catsEffectMonadErrorForResource[F[_], E](
implicit def catsEffectMonadErrorForResource[F[_], E](
implicit F0: MonadError[F, E]): MonadError[Resource[F, *], E] =
new ResourceMonadError[F, E] {
def F = F0
Expand Down

0 comments on commit f00b9cd

Please sign in to comment.