Calling Haskell from Python / C++

Simon Peyton-Jones simonpj@microsoft.com
Thu, 14 Nov 2002 13:50:02 -0000


I hope it's all described adequately in the GHC user manual
	http://haskell.org/ghc

If not, let us know!

Simon

| -----Original Message-----
| From: Peter Simons [mailto:simons@cryp.to]
| Sent: 13 November 2002 10:07
| To: haskell-cafe@haskell.org
| Subject: Re: Calling Haskell from Python / C++
|=20
| Simon Peyton-Jones writes:
|=20
|  > If Python uses C's calling convention, it might be easy; just use
|  > 'foreign import' and 'foreign export' (see the FFI spec at
|  > haskell.org).
|=20
| I remember reading that the main program, that wants to call Haskell
| code, would have to be compiled with a special Haskell main() routine,
| though? Is that true? And if, why is that necessary?
|=20
|         -peter
| _______________________________________________
| Haskell-Cafe mailing list
| Haskell-Cafe@haskell.org
| http://www.haskell.org/mailman/listinfo/haskell-cafe