-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Transform typeclass #1713
Comments
I can empathize with this requirement, and I would approve a PR that renames the methods to only be |
This typeclass is better known as |
@edmundnoble where can I see code for cats.mtl.monad.TransFunctor? Sure thing about the PR for defining |
This unfortunately is not implementable for |
There has been some discussion about adding a typeclass for dealing with
F ~> G
transformations in #1644. The original proposal was made by @kailuowang in this gist and I materialized it by the name ofTransform
. The example below includes only instances for EitherT and Kleisli.The pattern is apparent in Kleisli since it already implements transform. For the rest of the monad transformers it is not defined as a
F ~> G
and it is confusing given that forEitherT
andOptionT
transform means to bimap/map the inner types. This might be an opportunity to make standard theF ~> G
operations in MonadTs and solve the confusion for the actual use oftransform
.The text was updated successfully, but these errors were encountered: