Skip to content

issues Search Results · repo:optics-dev/Monocly language:Scala

Filter by

27 results
 (86 ms)

27 results

inoptics-dev/Monocly (press backspace or delete to remove)

Dual to #39, conceivably someone, wishing to have write-only semantics on their immutable data model, might implement their own copy method. I can t even think of a use case for a Setter optic to be honest, ...
  • kenbot
  • Opened 
    on Feb 6, 2021
  • #41

Tuples are extremely common and while they are not literally case classes, we know they have exactly case class semantics. A user might reasonably guess that ._1, ._2, etc do the obvious within a Focus ...
  • kenbot
  • Opened 
    on Feb 6, 2021
  • #40

There s no reason not to allow plain old getter methods on non-case classes, generating a Getter. This is something that a user might reasonably guess is supported, and it seems unreasonably to make them ...
  • kenbot
  • Opened 
    on Feb 6, 2021
  • #39

Imports are typically an underrated and frustrating source of friction in Scala libraries. We should think carefully about the imports we require users to make to access Monocle functionality. The Focus ...
question
  • kenbot
  • 3
  • Opened 
    on Feb 2, 2021
  • #36

withDefault(...) allows to fall back to a value in case the Option is a None. case class User(name: String, address: Option[Address]) case class Address(streetNumber: Int, postcode: String) val elise ...
  • julien-truffaut
  • 7
  • Opened 
    on Jan 31, 2021
  • #34

This ticket is here to track and prioritize Focus macro features: - [x] zoom into a field of a case class (generate a monomorphic Lens) - [x] zoom into an Option using some https://github.com/optics-dev/Monocly/issues/17 ...
  • julien-truffaut
  • Opened 
    on Jan 26, 2021
  • #31

Case classes in Scala The copy methods that Scala generates for polymorphic case classes are quite sophisticated. For instance, for case class Box[A](a: A), the copy method will look something like: ...
bug
  • kenbot
  • 3
  • Opened 
    on Jan 20, 2021
  • #28

Given that we already have (or plan to have) named methods like some and each that compose those respective optics onto an optic, shouldn t we keep that naming inside the Focus macro rather than having ...
question
  • kenbot
  • 3
  • Opened 
    on Jan 17, 2021
  • #26

Assuming we have at as well as index. Implementation will be almost identical to index feature.
enhancement
  • kenbot
  • Opened 
    on Jan 17, 2021
  • #25
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub