wisteria
wisteria copied to clipboard
Dependency on contingency
When trying to provide typeclass for sum type(taking into account that split
method is implemented, I get following:
[error] 60 | val typeclass = summon[Default[DefaultTest]]
[error] | ^
[error] |No given instance of type contingency.Errant[wisteria.VariantError] was found
[error] |---------------------------------------------------------------------------
[error] |Inline stack trace
[error] |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[error] |This location contains code that was inlined from wisteria.SumDerivationMethods.scala:126
[error] 126 | then raise(VariantError[DerivationType](inputLabel))(Unset)(using summonInline[Errant[VariantError]])
[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I personally already figured it out, but potential adopters, for example people, who only want a replacement for magnolia for their scala3 migration might be set off by this. Would you consider removing this dependency?