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 prelude module #63

Open
lilyball opened this issue Nov 4, 2021 · 0 comments
Open

Add prelude module #63

lilyball opened this issue Nov 4, 2021 · 0 comments

Comments

@lilyball
Copy link

lilyball commented Nov 4, 2021

It might be nice to have a prelude module that contains the macros, Report, and WrapErr. This way use eyre::prelude::*; will be equivalent to

use eyre::{bail, ensure, eyre, Report, WrapErr};

as those are the items I typically want to import everywhere I use eyre (more specifically I only import the macros I use so I don't get warnings, but that the means the other macros aren't available when I want them).

Notably this should not include Result, as taking over the bare Result identifier without explicitly importing it would be surprising.

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