network
network copied to clipboard
Fix calls to varargs C function fcntl
The ccall calling convention doesn't support varargs functions, so switch to capi instead. See https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/ffi.html#varargs-not-supported-by-ccall-calling-convention
Related PR: https://github.com/haskellari/lukko/pull/23
It seems to me that capi breaks doctest:
bytecode compiler can't handle some foreign calling conventions
@nrdmn do you have an interest in fixing this PR?