I have a case class like:
case class Person(name, birthDate, many other fields) { def something = //compute it from the fields }
What i would really like in the end is to have lenses for name, birthDate, and a readonly lens for something, and if possible compose them together to have a single lens for setting name/birthDate and reading name/birthDate/something
From my limited knowledge it does not seem possible (in shapeless i get an error when creating lens for the something function)
Maybe it's possible in other lens libraries or maybe there's a refactor i need to do