-
Notifications
You must be signed in to change notification settings - Fork 139
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
Avoid re-parsing of input source files #2367
Conversation
Yes, I'm using a global If we want to avoid that, we need to find a place to store an arbitrary value (in this case, a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gergoerdi.
I left a couple of comments for you to consider.
Does this PR solve your use case? If not, what else would be necessary?
Not fully yet, no. I'll add details to #235, but basically there are two other points where source files are read in by LH. One of them is easily disabled by just setting |
FWIW, I 100% disagree with the HLint suggestion here:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I 100% disagree with the HLint suggestion here:
Want to try disabling that one either globally or only in Plugin.hs?
In fact, in review I don't like my current code either :) So what we really want is:
I'm not sure we should ever remove the I'll redo the implementation based on these ideas. |
just signal to ourselves what's going on. Fixes ucsd-progsys#2366
…Module` in the appropriate plugin hook Part of ucsd-progsys#2357
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't find anything else to complain about 🎉
Part of the work towards #2357