We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
validate
validate returns type List error for the Err case of Result.
List error
Err
Result
validate : Validator error subject -> subject -> Result (List error) (Valid subject)
How to handle Err [ ]? Can we get rid of it?
Err [ ]
Use a non-empty-list of error to represent the error case.
error
(firstError, otherErrors) : (error, List error)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
validate
returns typeList error
for theErr
case ofResult
.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.(firstError, otherErrors) : (error, List error)
The text was updated successfully, but these errors were encountered: