Re: C to Haskell

1998-05-13 Thread Fergus Henderson
On 12-May-1998, S. Alexander Jacobson <[EMAIL PROTECTED]> wrote: > Ideally there would be a system which takes a Haskell project and exports > enumerated functions into a header file and set of C files. This would > allow C code like: > > #include "myHaskellProg.h" //functions prototypes + Haske

Re: C to Haskell

1998-05-12 Thread S. Alexander Jacobson
On Mon, 11 May 1998, Alastair Reid wrote: > Hugs' "server interface" provides a very limited ability for C functions > to call Haskell. Have a look at > > http://haskell.org/hugs/docs/server.html > > Needless to say, it'll all be better in the new Hugs-GHC system > we're working on. I have

Re: C to Haskell

1998-05-12 Thread Malcolm Wallace
Alex asked: > > Greencard allows Haskell to call C (or Corba). Is there a way to give C > > code access to Haskell functions? Simon writes: > GHC does not yet allow this, but we are working hard on H/Direct, > a successor to Greencard, that will. It'll also allow you to > seal up Haskell progr

Re: C to Haskell

1998-05-12 Thread Simon L Peyton Jones
> Greencard allows Haskell to call C (or Corba). Is there a way to give C > code access to Haskell functions? GHC does not yet allow this, but we are working hard on H/Direct, a successor to Greencard, that will. It'll also allow you to seal up Haskell programs inside COM objects. Timescale: a

Re: C to Haskell

1998-05-11 Thread Alastair Reid
"S. Alexander Jacobson" <[EMAIL PROTECTED]> writes: > I am writing CGI scripts in Haskell and would prefer not to pay the > process creation overhead of CGI. > > Apache allows you to compile apache modules directly into the httpd. > You just need to make sure that the code exports functions the

C to Haskell

1998-05-11 Thread S. Alexander Jacobson
I am writing CGI scripts in Haskell and would prefer not to pay the process creation overhead of CGI. Apache allows you to compile apache modules directly into the httpd. You just need to make sure that the code exports functions the functions that apache requires. The Netscape Server API has a