-
Notifications
You must be signed in to change notification settings - Fork 359
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
Derivation strategies #542
Comments
I'd honestly pick this up, but my shapeless-foo isn't quite the best. But maybe might be able to spin something up. I'd really like to have this, as I've foot-gunned myself many times by automatic derivation basically in every library that supports it, and have moved completely to using some-kind of semi-auto derivation. |
I will have a look at this. It may not be too bad. |
Would this be possible to revisit? Scala 3 has wonderful semiauto capabilities thanks to the |
This can probably be done by moving the auto derivation |
I think #1738 is the right way to go. Will resurrect it. |
That would be wonderful @jatcwang . Remember there is |
#1970 is merged. Closing |
It would be useful to be able to choose how to use (or not to use) derivation:
implicit val userComposite: Composite[User] = deriveComposite[User]
)For example: circe provides such choice for codec derivation.
Drawbacks of auto-derivation as the only choice:
Composite
instance.The text was updated successfully, but these errors were encountered: