Open yakivy opened 6 months ago
Interesting, that might be an issue with Shapeless 3 or even Scala 3
Looks like Scala 3 behaviour
scala> summon[Mirror.Of[MyString]]
-- [E172] Type Error: ----------------------------------------------------------
1 |summon[Mirror.Of[MyString]]
| ^
|No given instance of type scala.deriving.Mirror.Of[MyString] was found for parameter x of method summon in object Predef. Failed to synthesize an instance of type scala.deriving.Mirror.Of[MyString]:
| * class MyString is not a generic product because it is a value class
| * class MyString is not a generic sum because it is not a sealed class
1 error found
Looks like people tried and it didn't work: https://github.com/scala/scala3/issues/7000
this snippet compiles successfully on Scala 2.13, but fails on Scala 3:
Scastie: https://scastie.scala-lang.org/DqVORi3bSU6rB8JM0PupHw