optics-dev / optics-dev/Monocle
`Focus` macro
Open
@yilinwei is already working on this.
Since Jan 3, 2024.
3.x
- Dominant language
- Scala
- Stars
- 1.7k
- Forks
- 207
- Avg merge
- 7h 59m
- Merged PRs (30d)
- 5
Description
This ticket is here to track and prioritize Focus macro features:
- Single use focus pre-applied on a target using
.focus(...)#1027 - zoom into a branch of an enumeration/sealed trait using
as(generate a monomorphic Prism) https://github.com/optics-dev/Monocle/issues/1028 - zoom into all the elements of a collection using
each#1029 - zoom into a single element of a collection using
indexorathttps://github.com/optics-dev/Monocle/issues/1030 - zoom into an Option using
withDefault(...)#1031 - generate an Iso instead of a Lens when zooming on a case class with a single field #1032
- zoom into a common field of an enumeration (generate a monomorphic Lens #1033
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.