Re: [Haskell-cafe] Re: Export Haskell Libraries

2007-04-13 Thread Jason Morton
While we're on the topic, does anyone know if there exists a similarly simple solution like the (last) section Using both Python Haskell with ctypes at http://wiki.python.org/moin/PythonVsHaskell that works on Linux to easily link Haskell libraries/functions into Python? Cheers, Jason On

Re: [Haskell-cafe] Re: Export Haskell Libraries

2007-04-13 Thread Dan Weston
In the GHC docs: http://www.haskell.org/ghc/docs/6.4.1/html/users_guide/sec-ffi-ghc.html#using-own-main There can be multiple calls to hs_init(), but each one should be matched by one (and only one) call to hs_exit()[8]. What exactly happens with nested calls? Is there only one runtime

Re: [Haskell-cafe] Re: Export Haskell Libraries

2007-04-13 Thread SevenThunders
jasonm wrote: While we're on the topic, does anyone know if there exists a similarly simple solution like the (last) section Using both Python Haskell with ctypes at http://wiki.python.org/moin/PythonVsHaskell that works on Linux to easily link Haskell libraries/functions into Python?

Re: [Haskell-cafe] Re: Export Haskell Libraries

2007-04-13 Thread SevenThunders
Dan Weston wrote: In the GHC docs: http://www.haskell.org/ghc/docs/6.4.1/html/users_guide/sec-ffi-ghc.html#using-own-main There can be multiple calls to hs_init(), but each one should be matched by one (and only one) call to hs_exit()[8]. What exactly happens with nested calls? Is