Skip to content

Instantly share code, notes, and snippets.

Created April 18, 2017 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1cef8a3fa66f842dd3c10faf9fbbdc00 to your computer and use it in GitHub Desktop.
Save anonymous/1cef8a3fa66f842dd3c10faf9fbbdc00 to your computer and use it in GitHub Desktop.
the description for this gist
package mainshow
import show.Show
import show.Show.ops._
object MainShow extends App {
case class Foo(foo: Int)
implicit val fooShow: Show[Foo] =
foo => s"case class Foo(foo: ${foo.foo})"
println(30.show)
println(Foo(42).show)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment