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
It seems to me like the extension methods that are on LensSyntax et al that use andThen (such as withDefault ought to only require A =:= B and not S =:= T. I would expect those to be on something like:
final case class LensTargetSyntax[S, T, A](private val self: PLens[S, T, A, A]) extends AnyVal {
...
}
The text was updated successfully, but these errors were encountered:
steinybot
changed the title
Should withDefault be on the polymorphic lens?
Should withDefault be available on lenses with a polymorphic source?
Feb 23, 2023
It seems to me like the extension methods that are on
LensSyntax
et al that useandThen
(such aswithDefault
ought to only requireA =:= B
and notS =:= T
. I would expect those to be on something like:The text was updated successfully, but these errors were encountered: