You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fx being Monad may work well in a normal case like
deffoo[F[_]:Fx]:R=???
However, it may not work if it's used with Resource from Cats Effect.
When
Resource.make(someResource)(resource =>???)
The make requires Functor[F] typeclass which might be conflict with Fx itself since Monad[F] is also Functor[F] (Monad[F] with Applicative[F] with Functor[F])
So the best way to fix it, at least for now, is to remove Monad from Fx.
The text was updated successfully, but these errors were encountered:
Task
Summary
Fx
should no longer beMonad
.Project Details
Version:
1.14.0
Description
Fx
beingMonad
may work well in a normal case likeHowever, it may not work if it's used with
Resource
from Cats Effect.When
The
make
requiresFunctor[F]
typeclass which might be conflict withFx
itself sinceMonad[F]
is alsoFunctor[F]
(Monad[F] with Applicative[F] with Functor[F]
)So the best way to fix it, at least for now, is to remove
Monad
fromFx
.The text was updated successfully, but these errors were encountered: