You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this snippet compiles successfully on Scala 2.13, but fails on Scala 3:
No given instance of type cats.derived.DerivedMonoid[Playground.MyString] was found.
I found:
cats.derived.DerivedMonoid.given_DerivedMonoid_A[Playground.MyString](
shapeless3.deriving.K0.mkProductInstances[
[A] =>> cats.derived.Derived.Or[cats.kernel.Monoid[A]], Playground.MyString]
(
/* missing */
summon[shapeless3.deriving.K0.ProductGeneric[Playground.MyString]]
)
)
But Failed to synthesize an instance of type shapeless3.deriving.K0.ProductGeneric[Playground.MyString]: class MyString is not a generic product because it is a value class.
The following import might make progress towards fixing the problem:
import cats.derived.DerivedMonoid.Strict.product
scala> summon[Mirror.Of[MyString]]
-- [E172] TypeError:----------------------------------------------------------1|summon[Mirror.Of[MyString]]
| ^
|Nogiveninstance of typescala.deriving.Mirror.Of[MyString] was found for parameter x of method summon in objectPredef. Failed to synthesize an instance of typescala.deriving.Mirror.Of[MyString]:|*classMyString is not a generic product because it is a value class|*classMyString is not a generic sum because it is not a sealedclass1 error found
this snippet compiles successfully on Scala 2.13, but fails on Scala 3:
Scastie: https://scastie.scala-lang.org/DqVORi3bSU6rB8JM0PupHw
The text was updated successfully, but these errors were encountered: