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

Implicit conversion from Bind to cats.Monad #798

Merged
merged 2 commits into from
Oct 5, 2021

Conversation

gzoom13
Copy link
Contributor

@gzoom13 gzoom13 commented Oct 3, 2021

From user perspective, when I require Bind instance in my code,
I want to have implicit cats.Monad instance for later usages. Now to do so
I have to write something like implicit def monad[E] = bind.monad[E]
in the beginning of the method, since most of the library methods accept
typeclasses as implicit parameters.

Assuming that Bind is right-biased, it makes perfect sense to write such
implicit conversion and use it in source file imports section.

From user perspective, when I require Bind instance in my code,
I want to have implicit cats.Monad instance for later usages. Now to do so
I have to write something like implicit def monad[E] = bind.monad[E]
in the beginning of the method, since most of the library methods accept
typeclasses as implicit parameters.

Assuming that Bind is right-biased, it makes perfect sense to write such
implicit conversion and use it in source file imports section.
@Odomontois Odomontois merged commit dfe0d0a into tofu-tf:master Oct 5, 2021
@Odomontois Odomontois added the enhancement New feature or request label Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants