-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
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
problem with sum type and focus #1329
Comments
@machisuji you would need to be using scala 3 to generate this optic.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
libs
I am using newest monocle
with single import
and
scala 2.13.10
problem
I would like to change email when
PaymentMethod
isPayPal
(equivalent of copy)with quicklens I do simply
and everything works, I would like to have something similar with monocle
code
first try:
compilation error
another try:
I get compilation error
when I do something like this
I get
PaymentMethod
as a return instead ofUser
however when I create everything by myself I get what I need
how to do the same with
focus
?The text was updated successfully, but these errors were encountered: