[GHC Blog] Best practices for foreign imports

See https://www.haskell.org/ghc/blog/20210709-capi-usage.html

5 Likes

Great post, this has indeed bitten me before:

https://github.com/haskell/unix/pull/110#issuecomment-613384845 (this one was really scary, causing filenames to be messed up)

Unfortunately, many of those FFI bugs go unnoticed for long.

1 Like