softwaremill / magnolia

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

Consistent ordering for sealed traits #461

Closed note closed 1 year ago

note commented 1 year ago

I stumbled upon a difference in order of SealedTrait.subtypes between (magnolia1_3 % 1.2.7) and (magnolia1_2 % "1.1.3") when working on some project I intend to publish for both scala 2 and 3

It mimics the logic introduced in the original magnolia in this PR: https://github.com/softwaremill/magnolia/pull/196 and still present in magnolia1_2 at 1.1.3

adamw commented 1 year ago

Thank you!