[Haskell-cafe] Dynamically find out instances of classes (pluginsystem for haskell)

Radosław Grzanka radoslawg at gmail.com
Thu Nov 22 05:11:20 EST 2007


Hi,

Thanks for answer.

> There are two libs that I'm aware of.
>
>   http://hackage.haskell.org/cgi-bin/hackage-scripts/package/plugins-1.0
>
> http://hackage.haskell.org/cgi-bin/hackage-scripts/package/metaplug-0.1.
> 1

Unfortunatly former needs gcc, latter does not compile . I will have
to install msys or something I guess

> It's more like dynamic linking than Java's reflection: you have to
> already know what functions are in the module (and their types) to be
> able to call them. I'm not sure about directly creating values of data
> types exported from the module.

I know the types - not a problem. I just don't know the names.

Thanks,
  Radek.


More information about the Haskell-Cafe mailing list