[Haskell-cafe] calling haskell from C++

Marc Weber marco-oweber at gmx.de
Tue May 23 16:48:59 EDT 2006


On Tue, May 23, 2006 at 10:31:17AM +0100, Vladimir Portnykh wrote:
> Hello ALL,
> I am very new to Haskell and my question might appear very basic sorry 
> about it in advance.
> I have a C++ application and I would like to be able to launch Haskell 
> interpreter (lets say GHC) supplying the Haskell code (in a file ) to be 
> interpreted from it. The Haskell program generates some output and I would 
> like to use this output in my C++ program.
> Do you have any simple example to help me, please?
> Many thanks, Vladimir

You might also try compiling / using hsplugins, which compiles haskell
code at runtime.. There is an example how to compile/call such a haskell
method from C.

Marc


More information about the Haskell-Cafe mailing list