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

FR: Error struct to wrap Vec<Cause> #25

Open
meskill opened this issue Dec 2, 2024 · 0 comments
Open

FR: Error struct to wrap Vec<Cause> #25

meskill opened this issue Dec 2, 2024 · 0 comments

Comments

@meskill
Copy link
Contributor

meskill commented Dec 2, 2024

Based on the attempt to migrate to the new version of tailcall-valid: tailcallhq/tailcall#3167

In the commit f1ed850 the Error type was removed completely and the Valid type now corresponds to Result<A, Vec<Cause<E, T>> where the Err part is not implementing StdError. This significantly complicates the usage of to_result method and working with errors from Valid.

Provide new wrapper or rollback removal of the Error to simplify the usage of the library.

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