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

Commits on Oct 3, 2021

  1. Implicit conversion from Bind to cats.Monad

    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.
    gzoom13 committed Oct 3, 2021
    Configuration menu
    Copy the full SHA
    e65f65a View commit details
    Browse the repository at this point in the history
  2. Fix naming

    gzoom13 committed Oct 3, 2021
    Configuration menu
    Copy the full SHA
    0517248 View commit details
    Browse the repository at this point in the history