-
Notifications
You must be signed in to change notification settings - Fork 274
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
Re-export #1058 operators from Control.Lens.Operators
, fix incorrect documentation
#1068
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this up, I can only see one doc nit. While we're here, I think we should add the <<
variants (which return the old result), because the consistency of lens' operator language is one of its greatest strengths. They're also fairly simple to implement.
This prepend to the front rather than appending at the back. Spotted in #1067.
What names would you propose for these? We're in a bit of a weird situation as some of these operators already begin with |
I don't think that's a blocker: we already have There are only really three new operators in
The PR that added them added the the "return new result variants" (beginning with
Personally, I have never really needed the operators in |
I've pushed a commit which implements the operators suggested in #1068 (comment). Let me know if this covers everything. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems right to me. Just some whitespace lint which you can take or leave.
Thanks for tidying this up!
Co-authored-by: endgame <[email protected]>
As requested in #1068 (review).
Fixes #1067.