softwaremill / magnolia

Easy, fast, transparent generic derivation of typeclass instances
https://softwaremill.com/open-source/
Apache License 2.0
764 stars 116 forks source link

Question: Scala 3 automatic derivation #470

Open calvinlfer opened 1 year ago

calvinlfer commented 1 year ago

Hello there,

I was wondering if its possible to enable automatic derivation for Scala 3. The only caveat is I cannot implement derivation for sum types in my data model and I can only handle product types meaning I'm unable to extend AutoDerivation

Is there any workaround for this?

Thanks for this great library Cal

adamw commented 1 year ago

Can you provide a specific example which would show the issue? I'm not sure I understand

TonioGela commented 7 months ago

Just extend ProductDerivation