Skip to content

Instantly share code, notes, and snippets.

@sfosdal
Last active July 19, 2017 17:28
Show Gist options
  • Save sfosdal/8f508c54e1ce72b0f25038cf08e3052a to your computer and use it in GitHub Desktop.
Save sfosdal/8f508c54e1ce72b0f25038cf08e3052a to your computer and use it in GitHub Desktop.
1039519: mistaken unused import
name := "scratch"
scalaVersion := "2.11.11"
libraryDependencies += "org.typelevel" %% "cats" % "0.9.0"
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