We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you have exactly one case with no parameter list you get ambiguous implicits. If there are 2 cases it works, or if you have empty parens:
enum Works1 derives Eq: case Red, Blue enum Works2 derives Eq: case Red() enum Nope derives Eq: // ambigous implicits case Red
Not sure if there's any workarounds, first time I'm using shapeless. Amazing library btw! 😃
Repro: https://scastie.scala-lang.org/edoI6AKPQIKjuFM6vzzsWg
The text was updated successfully, but these errors were encountered:
I was doing some tests and it seems Shapeless for some reason really does not like enums without type parameters:
Sorry, something went wrong.
It can be workaround by typeclass lookup priority. Such as put product derives and coproduct derives in an object hierarchy
Fixed upstream - thanks @andrzejressel 🥳 scala/scala3#14525
No branches or pull requests
If you have exactly one case with no parameter list you get ambiguous implicits.
If there are 2 cases it works, or if you have empty parens:
Not sure if there's any workarounds, first time I'm using shapeless.
Amazing library btw! 😃
Repro:
https://scastie.scala-lang.org/edoI6AKPQIKjuFM6vzzsWg
The text was updated successfully, but these errors were encountered: