The friendship between Haskell and C
If ever there were two programming languages said to be at odds with one another, it might be Haskell and C. But this is not so true as it seems; they can play quite nicely with one another. Haskell’s foreign function interface lets us write Haskell code that uses libraries of other languages — notably, C.
As a brief introduction to how Haskell FFI works, I’ll be talking about my memfd package, which is available on Hackage.
Source: The friendship between Haskell and C, an article by Chris Martin.