A new version of the hs-plugins library has been released, v0.9.5.
hs-plugins provides dynamic loading, runtime compilation and an eval()
mechanism for Haskell plugins:
http://www.cse.unsw.edu.au/~dons/hs-plugins
New features:
* eval :: Typeable a => String -> [Import] -> IO (Maybe a)
* Foreign language bindings to eval:
#include "RunHaskell.h"
#include <stdio.h>
int main(int argc, char *argv[])
{
int i;
hs_init(&argc, &argv);
i = hs_eval_i("let fibs = 1:1:zipWith (+) fibs (tail fibs) in fibs !! 20 ::
Int");
printf("%d\n",i);
hs_exit();
}
* Dynamic typing of plugins now works
* Bug fixes
Thanks to Andr� Pang, Sean Seefried and Manuel Chakravarty for code and
lots of ideas.
Cheers,
Don
_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users