• simonmar's avatar
    [project @ 2003-01-28 16:30:06 by simonmar] · 34b568ce
    simonmar authored
    Flesh out support for hs_init() and hs_exit() according to the latest
    FFI spec.
    For GHC, I also added:
      hs_add_root( void (*fn)(void) );
    which is used to specify the root module.  This *must* be called prior
    to invoking any Haskell functions.
    The previous way of doing things still works:
      startupHaskell( argc, argv, root );
    but the right way to do this is now
      hs_init( &argc, &argv );
      hs_add_root( root );
    It is possible to invoke hs_add_root() multiple times with different
    - setProgArgv() has been removed; it was unused and looks like it was
      there to support STG Hugs.
HsFFI.c 956 Bytes