Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Focus] Each feature #1072

Merged
merged 3 commits into from
Feb 17, 2021
Merged

[Focus] Each feature #1072

merged 3 commits into from
Feb 17, 2021

Conversation

kenbot
Copy link
Collaborator

@kenbot kenbot commented Feb 17, 2021

Adds each to the Focus macro, resolving #1029.

Some more bits and pieces:

  • Fixed the ridiculous composeOptics method to be two lines, owing to a horrendous Dotty compiler space leak the old version was causing now that Traversals are in the mix.
  • Removed the ParseResult type alias. Give it to me straight
  • Removed the fully qualified _root_.monocle.this.that...., which is a habit I had picked up writing macros in stringier environments. They are real typechecked Scala symbols, there's no chance of ambiguity or accidental capture of some other symbol by the same name.

@kenbot
Copy link
Collaborator Author

kenbot commented Feb 17, 2021

Huh. Rebasing the latest somehow tripped up my tests - I had to .widen the type of the optic terms being composed, so that the type didn't get stuck on an overly specific singleton path.

@julien-truffaut
Copy link
Member

It looks great!

Copy link
Member

@julien-truffaut julien-truffaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job

@julien-truffaut julien-truffaut merged commit 834d402 into optics-dev:master Feb 17, 2021
@kenbot kenbot deleted the each branch February 17, 2021 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants