From d8ffd70901396593dbc4d2133e97d086f3eef71d Mon Sep 17 00:00:00 2001 From: Simon Parten Date: Mon, 24 Jul 2023 12:40:26 +0200 Subject: [PATCH 1/3] Upickle 3 note --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 8bf8c39..946f091 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,9 @@ sealed trait Page case class UserPage(userId: Int) extends Page case object LoginPage extends Page +// For upickle 3 series you'll want +// case object LoginPage extends Page derives ReadWriter + implicit val UserPageRW: ReadWriter[UserPage] = macroRW implicit val rw: ReadWriter[Page] = macroRW From d5e1b08ad6ccbf95af8d0f6e7137eb61aab0b6f8 Mon Sep 17 00:00:00 2001 From: Simon Parten Date: Mon, 24 Jul 2023 12:44:01 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 946f091..eb91983 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ sealed trait Page case class UserPage(userId: Int) extends Page case object LoginPage extends Page -// For upickle 3 series you'll want +// For upickle 3 series an explicit derivation is required // case object LoginPage extends Page derives ReadWriter implicit val UserPageRW: ReadWriter[UserPage] = macroRW From 009c7f9a19cca733e94160954fcd64a510c1ee6f Mon Sep 17 00:00:00 2001 From: Simon Parten Date: Mon, 24 Jul 2023 12:44:46 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eb91983..cbc5734 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ sealed trait Page case class UserPage(userId: Int) extends Page case object LoginPage extends Page -// For upickle 3 series an explicit derivation is required +// For upickle 3 series an explicit derivation of case objects is required // case object LoginPage extends Page derives ReadWriter implicit val UserPageRW: ReadWriter[UserPage] = macroRW