Currently, .name generates a monocle.Lens for a full case-class field.
For "get":
It should work for any no-arg method, and generate a monocle.Getter.
For "set":
It should work for anything with a copy method with a parameter of the appropriate name, where there is a named parameter with the same name. It should generate a monocle.Setter, returning whatever the copy method returns.
For "lens":
It should continue to generate a full monocle.Lens.
Currently,
.name
generates amonocle.Lens
for a full case-class field.For "get": It should work for any no-arg method, and generate a
monocle.Getter
.For "set": It should work for anything with a
copy
method with a parameter of the appropriate name, where there is a named parameter with the same name. It should generate amonocle.Setter
, returning whatever the copy method returns.For "lens": It should continue to generate a full
monocle.Lens
.