Skip to content
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

Move the second type argument to the modify/modifyAll method in Scala 3 #158

Merged
merged 1 commit into from
May 3, 2023

Conversation

KacperFKorban
Copy link
Collaborator

This allows manually specifying type arguments of the focused field

Also suppress some warnings in Scala 3 macros

related to #157

This allows manually specifying type arguments of the focused field

Also suppress some warnings in Scala 3 macros

related to softwaremill#157
@adamw
Copy link
Member

adamw commented May 3, 2023

Looks good! :) Any more work you are planning on this draft?

@KacperFKorban KacperFKorban marked this pull request as ready for review May 3, 2023 12:51
@KacperFKorban
Copy link
Collaborator Author

No, I think that it's good to merge.
I played around with casting the output of mod function to the required type. (So that the type application will not be required for literal types) But that would require some additional manual checks for the types and I don't think that's worth it. Especially since modifying a field of literal type is the most useless lens ever 😄

@KacperFKorban KacperFKorban merged commit c744356 into softwaremill:master May 3, 2023
@KacperFKorban KacperFKorban deleted the fix-i157 branch May 3, 2023 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants