Closed morgen-peschke closed 5 months ago
Attention: Patch coverage is 0%
with 7 lines
in your changes are missing coverage. Please review.
Project coverage is 94.68%. Comparing base (
1e64b32
) to head (e2d540e
).
Files | Patch % | Lines |
---|---|---|
...c/main/scala/cats/parse/extra/DefaultParser0.scala | 0.00% | 4 Missing :warning: |
...rc/main/scala/cats/parse/extra/DefaultParser.scala | 0.00% | 3 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I also wonder a bit about this typeclass being lawless.
It could be a lawful typeclass if paired with a function that converts A to String and the law is that we can always parse and get back the original.
What do you think about the lawlessness?
I don't have any strong opinions about it being lawless.
I have the mild inclination that creating laws for DefaultParser0
/DefaultParser0
would imply the existence of Coparser
/Coparser0
, but I have no idea if that's worth representing in the code as something other than A => String
.
It'd probably make testing parsers over the set of valid inputs easier, so it might be worth doing for that reason alone.
Thanks for everyone's help :)
These provide a way to bless canonical
Parser
/Parser0
instances and easily call them.Implements #435