Type Classes

Type Classes

memfd: An example of Haskell and C

Today I'm talking about my 'memfd' library, a concise example of FFI in Haskell.

Chris Martin's avatar
Chris Martin
Mar 17, 2023
∙ Paid

This article is installment two of two. Part one laid out some important concepts, and this part goes into the inner workings of the memfd library to show how Haskell FFI works.

I had been reading Drew DeVault’s free book, The Wayland Protocol (which I recommend if you’re interested in Wayland). When it comes time to show how to allocate a shared memory …

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2026 Mission Valley Software LLC · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture