Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating Haskell in non-functional projects

I have looking to Haskell questions in SO, and I recovering my university notes on functional 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?

like image 810
yeyeyerman Avatar asked Dec 18 '22 06:12

yeyeyerman


1 Answers

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.

like image 76
Meredith L. Patterson Avatar answered Jan 06 '23 05:01

Meredith L. Patterson