initIface* usage in plugins

Ben Gamari ben at smart-cactus.org
Fri Feb 26 20:34:21 UTC 2021


Josh Meredith <joshmeredith2008 at gmail.com> writes:

> 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?
>
Josh, did you ever get an answer here?

Cheers,

- Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20210226/dc4bfa92/attachment.sig>


More information about the ghc-devs mailing list