-
-
Notifications
You must be signed in to change notification settings - Fork 389
Add a hook for modifying the dynflags from a plugin #1814
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
Conversation
I have to admit, I'm a bit concerned about how this interacts with recompilation checking. |
Why? As long as the choice of plugins doesn't change, I think that existing interface files should satisfy the recompilation checks. |
The modsummary is changed using |
Ok, so the risk is that the "parsed" @isovector do we really need two modification functions? |
Well, that's up to yall! All I care about is getting a parse with |
Perhaps you can restore the original |
@wz1000 PTAL at d452740 |
Co-authored-by: Pepe Iborra <pepeiborra@me.com>
Co-authored-by: Pepe Iborra <pepeiborra@me.com>
This PR changes the hls-plugin-api, adding a new
pluginModifyDynflags
hook to thePluginDescriptor
. This field has type:which are
DynFlags
endos for things you'd like to enable globally, and only for the parsing step. This PR uses themodifyGlobal
field to pull some Wingman-specific functionality out ofghcide
. The upcoming #1776 usesmodifyParser
to steal some Source Haskell syntax and allow inline tactic metaprogramming.