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

Partial monad #68

Open
ntwilson opened this issue Aug 13, 2019 · 0 comments
Open

Partial monad #68

ntwilson opened this issue Aug 13, 2019 · 0 comments

Comments

@ntwilson
Copy link
Owner

It might be nice to make an “empty” monad for tracking partial functions. Then we could make a Partial.run : (Exception -> ‘a) Partial<‘a> -> ‘a. That way you’d be able to track that a function can throw without tracking the error cases. But as opposed to Options, there is an exception backing it so you get error info.

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

No branches or pull requests

1 participant