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

Add the Result Crock #100

Merged
merged 1 commit into from
Mar 7, 2017
Merged

Add the Result Crock #100

merged 1 commit into from
Mar 7, 2017

Conversation

evilsoft
Copy link
Owner

@evilsoft evilsoft commented Mar 6, 2017

Getting results (?)

This PR adds the new Result crock as requested by this issue#6.

This is just like the Either type, except you can accumulate Errs using ap. Its constructors are Ok and Err.

Also adds all the required transforms for this new type:

  • eitherToResult
  • maybeToResult
  • resultToAsync
  • resultToEither
  • resultToMaybe

Also it turns out that arrayToList and listToArray were not exposed to the public API. This exposes those as well.

@coveralls
Copy link

coveralls commented Mar 6, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 2200e72 on add-result into 26b1e71 on master.

@evilsoft
Copy link
Owner Author

evilsoft commented Mar 7, 2017

@evilsoft evilsoft merged commit 89acc97 into master Mar 7, 2017
@evilsoft evilsoft deleted the add-result branch March 7, 2017 04:04
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

Successfully merging this pull request may close these issues.

2 participants