You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We do something similar to this in Scala 2 to generate an Gen[List[A]] that holds exactly one instance of an arbitrary for every sub type in a sealed trait. This is extremely useful for testing.
This question is for Scala3
Is there any way for the
Typeclass
to be different than the derived type?For example:
We do something similar to this in Scala 2 to generate an
Gen[List[A]]
that holds exactly one instance of an arbitrary for every sub type in a sealed trait. This is extremely useful for testing.Here's the implementation that works in Scala 2:
The text was updated successfully, but these errors were encountered: