Chessie icon indicating copy to clipboard operation
Chessie copied to clipboard

Error list for combined validation failures

Open xajler opened this issue 9 years ago • 1 comments

I'm interested how to get an error list of combined validation failures. In ROP example by Scott he is using plus or &&&.

I assume in Chessie this is apply or <*>, but I'm not sure how to use it. I didn't see any example of using it, and no test on this function. Is there a possibility for somebody to show example of using (as in your docs combinedValidation) but result to be, all errors that happened in all validation combined together, because with bind >> only first error is returned?

Thanks.

xajler avatar Sep 01 '16 13:09 xajler

There are two examples in the docs on how to combine functions in applicative style: http://fsprojects.github.io/Chessie/a-tale-of-3-nightclubs-fsharp.html#Part-Two-Club-Tropicana http://fsprojects.github.io/Chessie/a-tale-of-3-nightclubs-fsharp.html#Part-Three-Gay-bar

mrinaldi avatar Sep 15 '16 22:09 mrinaldi