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

SE-597 - Upgrade Libs #45

Merged
merged 4 commits into from
Oct 17, 2016
Merged

SE-597 - Upgrade Libs #45

merged 4 commits into from
Oct 17, 2016

Conversation

juanpedromoreno
Copy link
Contributor

@juanpedromoreno juanpedromoreno commented Oct 12, 2016

This PR is related to this other PR: scala-exercises/scala-exercises#599

It should be merged only once #599 is merged.

Additionally, it updates the cats exercises to align it with latest version (0.7.2) (import statements and some more things).

BTW, this PR fixes #39 and #36

Please, @raulraja could you review? Thanks.

@juanpedromoreno juanpedromoreno changed the title SE-597 upgrade libs SE-597 - Upgrade Libs Oct 12, 2016
@@ -48,7 +46,7 @@ object ApplySection extends FlatSpec with Matchers with org.scalaexercises.defin
* Since `Apply` extends `Functor`, we can use the `map` method from `Functor`:
*/
def applyExtendsFunctor(res0: Option[String], res1: Option[Int], res2: Option[Int]) = {
import cats.std.all._
import cats.implicits._
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these should have the actual import of the feature used which is a lot more precise than importing all of cats implicits.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR has focused in the upgrading process. Maybe we could align the current cats documentation (like http://typelevel.org/cats/tut/apply.html) with the current implementation in scala-exercises in a different ticket: #46

@juanpedromoreno juanpedromoreno mentioned this pull request Oct 17, 2016
@juanpedromoreno
Copy link
Contributor Author

@raulraja does it make sense? Thanks!

@juanpedromoreno juanpedromoreno merged commit 8616b73 into master Oct 17, 2016
@juanpedromoreno juanpedromoreno deleted the se-597-upgrade-libs branch October 17, 2016 14:00
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.

Cats version used in examples is outdated
2 participants