Haskell Integration in Non-Functional Projects

I look at Haskell's questions at SO, and I am retrieving my university notes on functional programming as a hobby. But I always wondered how you can do something in Haskell outside the Hugs interpreter and integrate with a C #, C ++, or Java project. Has anyone done this? How?

+4
source share
4 answers

Well, first of all, Haskell is compiled into machine code, so you don't have to worry about an interpreter bit.

As for integration with other languages, the best option is the External Functions Interface .

+12
source

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

+1
source

To integrate with other code, you need to use FFI (as already mentioned). Usually you use GHC (the Glasgow Haskell compiler) and compile the machine code, instead of using an interpreter such as Hugs. (Most "real" projects use GHC instead of Hugs.)

+1
source

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

-2
source

All Articles