views:

254

answers:

4

I have looking to Haskell questions in SO, and I recovering my university notes on funtional programming as a hobby. But I've always wondered how could something done in Haskell get outside Hugs interpreter and integrate with a C#, C++ or Java project. Has anybody done that? How?

+9  A: 

Well, first of all, Haskell compiles to machine code, so you don't have to worry about the interpreter bit.

As far as integrating with other languages, your best bet is the Foreign Function Interface.

Meredith L. Patterson
That's was exactly what I was looking for. Thanks.
yeyeyerman
Haskell compiles to machine code via more sophisticated compilers like GHC.
Harold L
+1  A: 

For integrating with .NET projects, there is also http://haskell.forkio.com/dotnet/

Alexey Romanov
A: 

Python has a subset which is pretty much a functional language.

ilya n.
There are some functional features in Python, but it is definitely *not* a functional language.
Adam Byrtek
A: 

To integrate with other code, you need to use the FFI (as was already said). Usually, you would use GHC (the Glasgow Haskell Compiler) and compile to machine code, rather than use an interpreter like Hugs. (Most "real" projects use GHC instead of Hugs.)

Zifre