optics-dev / optics-dev/Monocle

`Focus` macro

Open
#1,026 0 comments 0 reactions 1 assignee View on GitHub

@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 index or at https://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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.