Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use simple typeable for simple case classes #232

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

dwickern
Copy link
Contributor

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
Copy link
Member

It's probably missing typeable for enumeration

@dwickern
Copy link
Contributor Author

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.

@dwickern dwickern changed the title Failing test for scala.Enumeration Use simple typeable for simple case classes Jun 11, 2024
Copy link
Member

@joroKr21 joroKr21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense 👍

@joroKr21 joroKr21 merged commit 6655cc5 into typelevel:main Jun 12, 2024
6 checks passed
@dwickern dwickern deleted the scala-enumeration branch June 12, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants