Created
April 18, 2017 12:50
-
-
Save anonymous/1cef8a3fa66f842dd3c10faf9fbbdc00 to your computer and use it in GitHub Desktop.
the description for this gist
This file contains 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
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