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

Replace as method with to method #6

Merged
merged 5 commits into from
May 2, 2023
Merged

Conversation

mpilquist
Copy link
Member

@mpilquist mpilquist commented May 2, 2023

The as method conflicts with the Functor operation by the same name -- i.e. alias for fa.as(b) == fa.map(_ => b). In a codebase with import cats.syntax.all._ or equivalent syntax import, the as from Functor takes precedence over the as from TwiddleSyntax trait.

@mpilquist mpilquist merged commit dc8ae77 into main May 2, 2023
@mpilquist mpilquist deleted the topic/out-with-as-in-with-to branch May 2, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant