New version of hs-plugins

Donald Bruce Stewart dons at cse.unsw.edu.au
Sat Jun 12 01:26:40 EDT 2004


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


More information about the Glasgow-haskell-users mailing list