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

Error node needs extension from Maybe to Either E #133

Open
rokopt opened this issue May 31, 2023 · 0 comments
Open

Error node needs extension from Maybe to Either E #133

rokopt opened this issue May 31, 2023 · 0 comments
Labels
enhancement New feature or request juvix-integration

Comments

@rokopt
Copy link
Member

rokopt commented May 31, 2023

The new error node (see #90 and #129) currently introduces Maybes for places where it passes errors back to clients (see also #132, which proposes an extension to allow clients to choose to crash right away rather than catch and return errors). It will need to be extended to Either E, where E is a client-chosen type. This subsumes not only Maybe (where E is Unit) but also circuits where there are no failures (where E is Void), thus undoing the regression that we can no longer represent circuits that can be statically guaranteed not to fail, as well as allowing clients to distinguish among different, configurable classes of errors.

@rokopt rokopt added enhancement New feature or request juvix-integration labels May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request juvix-integration
Projects
None yet
Development

No branches or pull requests

1 participant