From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Radoslaw Grzanka
Hi,
Is there any plugin system for haskell? For example, in Java, I can
load all compiled classes from given directory, check their interfaces
and run some methods through reflection etc. Is it possible in
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
Is there any plugin system for haskell? For example, in Java, I can
load all compiled classes from given directory, check their interfaces
and run some methods through reflection etc. Is it possible in
haskell, to load modules from given directory, and if in module there
is instance of class
2007/11/22, Claus Reinke [EMAIL PROTECTED]:
Is there any plugin system for haskell? For example, in Java, I can
load all compiled classes from given directory, check their interfaces
and run some methods through reflection etc. Is it possible in
haskell, to load modules from given
Bayley, Alistair-2 wrote:
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
There is also
Claus Reinke wrote:
I hope this is understandable what I'm trying to achieve here.
not really: the only classes in haskell are type classes, and
if there is any class instance missing at compile time, you
won't even get to runtime, so you don't have to worry
about loading instances at
I'm not 100% sure, but I think hsplugins can dynamically load compiled
*.o files in this way.
Correct.
Not sure whether this requires the person running
the main program to have GHC installed though.
Yes, it does.
Thanks ciao,
Leif
Unlike Java, there's no reflection capabilities. This