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

Filter out "unused ..." warnings during macro expansion #50

Open
jgrosso opened this issue Sep 16, 2019 · 1 comment
Open

Filter out "unused ..." warnings during macro expansion #50

jgrosso opened this issue Sep 16, 2019 · 1 comment
Assignees
Labels
bug A bona fide implementation mistake. errors Anything related to Axel's error messages or error handling. macro expansion Anything related to Axel macro expansion.

Comments

@jgrosso
Copy link
Collaborator

jgrosso commented Sep 16, 2019

If an error occurs during macro expansion, not all the warnings related to the macro definition and environment file will be relevant. For example, not all imports or function definitions might be used yet at that point in the file, in which case "unused import" warnings will be displayed to the user (despite the fact that, in the final transpiled output, the definitions in question will be used after all).

@jgrosso jgrosso added improvement Adding a new feature, improving an existing feature, etc. bug A bona fide implementation mistake. and removed improvement Adding a new feature, improving an existing feature, etc. labels Sep 16, 2019
@jgrosso jgrosso changed the title Filter out "unused ..." warnings during macro expansion Errors: Filter out "unused ..." warnings during macro expansion Sep 16, 2019
@jgrosso jgrosso changed the title Errors: Filter out "unused ..." warnings during macro expansion Filter out "unused ..." warnings during macro expansion Sep 16, 2019
@jgrosso jgrosso added the errors Anything related to Axel's error messages or error handling. label Sep 16, 2019
@jgrosso jgrosso added the macro expansion Anything related to Axel macro expansion. label Sep 24, 2019
@jgrosso
Copy link
Collaborator Author

jgrosso commented Jul 25, 2022

In the near future, GHC 9.4.1's structured error data might make this easier.

@jgrosso jgrosso self-assigned this Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bona fide implementation mistake. errors Anything related to Axel's error messages or error handling. macro expansion Anything related to Axel macro expansion.
Projects
None yet
Development

No branches or pull requests

1 participant