typelevel / shapeless-3

Generic programming for Scala
189 stars 22 forks source link

Use simple typeable for simple case classes #232

Closed dwickern closed 4 months ago

dwickern commented 4 months ago

I ran into this migrating some code from Scala 2 to 3.

Missing Typeable for field of case class shapeless3.typeable.TypeableTests.CaseClassWithEnumeration [614:48]

joroKr21 commented 4 months ago

It's probably missing typeable for enumeration

dwickern commented 4 months ago

Actually the problem is we don't need a namedCaseClassTypeable for these simple case classes, we can use a namedSimpleTypeable like Shapeless 2 does. This also avoids an unnecessarily large generated Typeable implementation.