initIface* usage in plugins

Josh Meredith joshmeredith2008 at gmail.com
Thu Feb 4 15:36:39 UTC 2021


Hi,
I'm trying to use initIfaceLoad and initIfaceLcl to lookup core `Name`s
within a plugin. My understanding is that functions such as
`lookupIfaceTop` are used for this, but I'm running into an issue that I
suspect is caused by some `Name`s being inappropriate for this function, so
they fail with the error `Iface id out of scope: ...`.

Is there a robust way to select which `Name` lookup function to use based
on a core binding/expression?

Thanks,
Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20210205/0d2e1807/attachment.html>


More information about the ghc-devs mailing list