-
Notifications
You must be signed in to change notification settings - Fork 53
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
Some minor nits post Parser0 change #123
Conversation
so, it looks like 2.12 has a buggy (IMO) warning that gets triggered by this change. Then fatal warnings kills the build. |
Codecov Report
@@ Coverage Diff @@
## main #123 +/- ##
==========================================
- Coverage 94.34% 94.28% -0.06%
==========================================
Files 6 6
Lines 760 770 +10
Branches 70 67 -3
==========================================
+ Hits 717 726 +9
- Misses 43 44 +1
Continue to review full report at Codecov.
|
This reminds me: I didn't make Of course that does mean <+> which is the MonoidK syntax, is duplicative. I do think | is more obvious. |
Nice, LGTM. I don't know what the warning was exactly, but maybe that can be suppressed in a follow up when 2.12.13 is out with warning suppression (any day now). |
Thanks for the review @martijnhoekstra -- By the way, do you think you will have time to send a PR to scala steward to set your scala fix rule as the rule to apply to upgrade to 0.3.0? |
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.
Looks great!
the orElse
looks nice. Adding an operator would look nice as well. I like |
but I wonder about the user's familiarity with <+>
. Also, the idea here would be to add or replace?
we can't replace So I guess I'll make a second PR that adds | here as an alternative to orElse. |
Yeah, sure, I'll do that for tomorrow. I'll just point it to the head of the branch, so I can still make the change for orElse (or any other changes that may be part of 0.3.0) |
This is a minor change after #116
.as(foo).map(fn)
to be.as(foo(fn))
to avoid evaluating fn on each value.private[parse]
. I prefer to use the stronger encapsulation (private) if we can.What do you think @martijnhoekstra @regadas