Extend Lens macro to generate lenses for all accessors at once #18

Closed
julien-truffaut opened this Issue Mar 3, 2014 · 2 comments

Comments

Projects
None yet
1 participant
Owner

julien-truffaut commented Mar 3, 2014

No description provided.

Owner

julien-truffaut commented Mar 7, 2014

@xeno-by mentioned that macro annotation would be a good candidate

julien-truffaut pushed a commit that referenced this issue Aug 6, 2014

Add the @Lenses macro annotation
Fixes #18

Please note:
* add paradise compiler plugin for 2.11+, as it's need for annotations
* unfortunately it seems like annotation users need to add the paradise
  plugin too :( see http://stackoverflow.com/q/23485426/463761
* Bumped paradise/quasiquotes to 2.0.1
* Fails with a slightly obscure message when annotating a non-case class
* Slightly verbose, especially the quasiquote unlift of classDef..
* I eliminated the boilerplate in the test, instead of adding more tests
* I'm happy to redo anything, names, split commits, tests, etc..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment