[Haskell-cafe] calling haskell from C++

Lemmih lemmih at gmail.com
Tue May 23 14:58:29 EDT 2006

On 5/23/06, Marc Weber <marco-oweber at gmx.de> wrote:
> 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.

Hs-plugins just calls GHC. Going through Haskell to execute GHC is
overkill in the extremes.


More information about the Haskell-Cafe mailing list