-
Notifications
You must be signed in to change notification settings - Fork 158
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
Add error accumulating function to RefType #75
Comments
https://meta.plasm.us/posts/2015/12/17/error-accumulating-decoders-in-circe/ might be interesting here. |
hi @fthomas, i'll be glad to work on this issue) can you give me some hints on where to start? |
That would be great @ysusuk. The easiest way right now to accumulate errors is by using cats' (refineV[Positive](x).toValidatedNel |@| refineV[NonEmpty](y).toValidatedNel).map2 {
(x1, y1) => ???
} with nice error accumulation. I think my idea was to have a variant of |
hi @fthomas |
@ysusuk Yes. :-) |
@fthomas can you pls assign this issue on me) |
It seems that I only can assign it to myself. |
I'm closing this in favor of #382. |
Add a function to
RefType
that is similar torefine
but instead of returning anEither
it should return a type that can accumulate errors (something likecats.Validated
). bond has this as can be seen here: https://github.com/fthomas/refined/blob/v0.8.2/modules/docs/feature_comparison_bond.md#what-bond-has-but-refined-notThe text was updated successfully, but these errors were encountered: