RE: [Haskell] Making shared libraries with Haskell
On 26 September 2005 08:57, Joel Reymont wrote:
Is the procedure of creating shared libraries with Haskell and loading them from C described somewhere?
Is this even possible?
It currently isn't possible to build a Unix-style .so from Haskell code using GHC, although there is work in this direction (PIC and shared libraries are supported on MacOS X, and other platforms are in progress). It is possible to build a Windows DLL from Haskell code, although currently all the Haskell code has to reside in a single DLL. Again, this is a restriction we intend to lift in the future. It has been working before, but bitrotted due to fragility and lack of developer resources. Cheers, Simon
Simon, It appears that hs-plugins supports this functionality. I don't care if its bundles or shared libraries so long as I can use Haskell as a DSL in some other program (game engine is what I had in mind). hs- plugins appears to allow this, unless you are telling me it only works on Windows :-). Joel On Oct 5, 2005, at 5:09 PM, Simon Marlow wrote:
It currently isn't possible to build a Unix-style .so from Haskell code using GHC, although there is work in this direction (PIC and shared libraries are supported on MacOS X, and other platforms are in progress).
hs-plugins works on unix and windows :) -- Don joelr1:
Simon,
It appears that hs-plugins supports this functionality. I don't care if its bundles or shared libraries so long as I can use Haskell as a DSL in some other program (game engine is what I had in mind). hs- plugins appears to allow this, unless you are telling me it only works on Windows :-).
Joel
On Oct 5, 2005, at 5:09 PM, Simon Marlow wrote:
It currently isn't possible to build a Unix-style .so from Haskell code using GHC, although there is work in this direction (PIC and shared libraries are supported on MacOS X, and other platforms are in progress).
-- http://wagerlabs.com/idealab
_______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
participants (3)
-
dons@cse.unsw.edu.au -
Joel Reymont -
Simon Marlow