Skip to content
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

Can validate return a nonempty list of errors? #35

Open
andys8 opened this issue Nov 14, 2018 · 0 comments
Open

Can validate return a nonempty list of errors? #35

andys8 opened this issue Nov 14, 2018 · 0 comments

Comments

@andys8
Copy link

andys8 commented Nov 14, 2018

validate returns type List error for the Err case of Result.

validate :
    Validator error subject
    -> subject
    -> Result (List error) (Valid subject)

Issue

How to handle Err [ ]? Can we get rid of it?

Possible solution

Use a non-empty-list of error to represent the error case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant