Created
October 5, 2021 19:09
-
-
Save gvolpe/eb85cb0a2632e9ec179ce3bd80a73cee to your computer and use it in GitHub Desktop.
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.Show | |
import cats.derived.semiauto.* | |
import cats.syntax.all.* | |
final case class User(name: String, age: Int) derives Show | |
object Demo: | |
@main def run = | |
println(User("Joe", 18).show) // outputs: User(name=Joe, age=18) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment