Plugins: Accessing unexported bindings
Ömer Sinan Ağacan
omeragacan at gmail.com
Sun Dec 6 13:41:19 UTC 2015
2015-12-06 2:01 GMT-05:00 Levent Erkok <erkokl at gmail.com>:
> The mg_binds field of the ModGuts seem to only contain the bindings that are
> exported from the module being compiled.
This is not true, it contains all the definitions in the module and I'm relying
on this all the time. I just tested again and it definitely has all the
definitions in the module, exported or not.
If it doesn't export everything in the module some optimizers couldn't really
work. At least in my case the plugin API would be basically useless.
May I ask how are you testing this?
More information about the ghc-devs
mailing list