[Yhc] Yhc and plugins architecture

Cédric Paternotte cpaternotte at gmail.com
Sun Sep 17 12:31:36 EDT 2006


Hi,

I was wondering whether Yhc was able to provide dynamic loading of modules.

Let's say I'd wanted to do something like :

myFiboFunction <- loadModule "myPlugin.hbc" "myFiboFunction"
putStrlLn $ myFiboFunction 10

Is it possible to achieve this in the current state of Yhc ?
I know there's an API out there to load bytecodes at runtime but I'm
not sure it's meant to do that...

I'm aware of the hs-plugins library for GHC that allows this kind of
hot plugging.
Since Yhc is built around the idea of bytecode I figured it should
come with built-in dynamic loading facilities.

Regards,

Cedric


More information about the Yhc mailing list