Skip to content

Instantly share code, notes, and snippets.

@etorreborre
Created May 25, 2016 06:35
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save etorreborre/9ed0b567ddadd694f8a394fef084c936 to your computer and use it in GitHub Desktop.
Save etorreborre/9ed0b567ddadd694f8a394fef084c936 to your computer and use it in GitHub Desktop.
Show applied implicits in the REPL
scala> import cats.implicits._
import cats.implicits._
scala> (1 -> 2) === (1 -> 3)
res0: Boolean = true
scala> import scala.reflect.runtime.universe._
import scala.reflect.runtime.universe._
scala> showCode(reify { (1 -> 2) === (1 -> 3) }.tree)
res1: String = implicits.eqSyntax(Predef.ArrowAssoc(1).->(2))(implicits.tuple2Order(implicits.intOrder, implicits.intOrder)).===(Predef.ArrowAssoc(1).->(3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment