Skip to content
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

Refactor Ref#mapK to take Functor[G] constraint instead of Functor[F] #4115

Open
wants to merge 1 commit into
base: series/3.x
Choose a base branch
from

Conversation

armanbilge
Copy link
Member

Best practice is for mapK methods to require constraints on the target effect, not the original effect.

@armanbilge armanbilge changed the title Refactor Ref#mapK to take Functor[G] constraint instead of `Functor[F] Refactor Ref#mapK to take Functor[G] constraint instead of Functor[F] Aug 13, 2024
@armanbilge armanbilge added this to the v3.6.0 milestone Aug 13, 2024
@durban
Copy link
Contributor

durban commented Sep 1, 2024

Out of curiosity: why is this best practice? And is it worth documenting? (Not in this PR, but maybe a followup.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants