Last active
July 19, 2017 17:28
-
-
Save sfosdal/8f508c54e1ce72b0f25038cf08e3052a to your computer and use it in GitHub Desktop.
1039519: mistaken unused import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name := "scratch" | |
| scalaVersion := "2.11.11" | |
| libraryDependencies += "org.typelevel" %% "cats" % "0.9.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cats.implicits._ // IntelliJ thinks this is unused | |
| import cats.kernel.Semigroup | |
| object Main extends App { | |
| val f: (Int) => Int = Semigroup.combine((_: Int) + 1, (_: Int) * 10) | |
| println(s"f(6): ${f(6)}") | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment