Tunnelling information between plugin hooks
ÉRDI Gergő
gergo at erdi.hu
Tue Oct 8 06:17:24 UTC 2024
Hi,
Is there a way to compute some value inside a plugin hook, and then make
that available to a later hook (other than horrible hacks like writing it
to a global `IORef` / `MVar`)?
For example, suppose my `parsedResultAction` looks at the parsed AST and
computes a `MySourceStats` from it. How can I then access that
`MySourceStats` value from my `typeCheckResultAction`?
Thanks,
Gergo
More information about the ghc-devs
mailing list