Replies: 2 comments 13 replies
-
Currently I cannot migrate the dijon project to Scala 3. Here is my 1st attempt to use union types but it failed because implicit class that extends |
Beta Was this translation helpful? Give feedback.
-
Hello, and thanks for helping out answer questions around migrations. I have been trying out opaque types lately, but can't seem to find a way to have them derive typeclasses automatically based on the original type. The specific example I'm trying to work with is to create a circe Encoder from an opaque type that is a String. The only solution so far is to create a given using a String encoder. Is there a solution at this point where the derivation is automatic, or semi-automatic? Edit: I have found no reference to opaque types in the page about the new typeclass derivation system in Scala 3. |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with the members of our community. We hope that you:
build together 💪.
Beta Was this translation helpful? Give feedback.
All reactions