Created
October 5, 2021 19:09
-
-
Save gvolpe/eb85cb0a2632e9ec179ce3bd80a73cee to your computer and use it in GitHub Desktop.
Revisions
-
gvolpe revised this gist
Oct 5, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,4 +6,4 @@ 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) -
gvolpe created this gist
Oct 5, 2021 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ 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)