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

Support for rudimentary optics #105

Open
Madoc opened this issue Sep 20, 2017 · 0 comments
Open

Support for rudimentary optics #105

Madoc opened this issue Sep 20, 2017 · 0 comments
Labels
enhancement uncategorized Used for Waffle integration

Comments

@Madoc
Copy link

Madoc commented Sep 20, 2017

If the plugin would be extended by an option to generate lenses, it could output additional generated code similar to this:

object MyType {
  // autogenerated code ...
  val X:Lens[MyType,Int] = Lens(_.x, _.withX)
}

This would greatly help the user of the plugin to write deeply nested property modifications in a comprehensive manner, by combining lenses. It should not matter much which of the popular Scala Optics libraries would be supported, as long as it's as least one.

Adding those lenses manually is tedious and subverts the idea of code generation.

@eed3si9n eed3si9n added the uncategorized Used for Waffle integration label Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement uncategorized Used for Waffle integration
Projects
None yet
Development

No branches or pull requests

3 participants