crclark / foundationdb-haskell

Haskell FFI bindings to the FoundationDB C API
https://crclark.github.io/foundationdb-haskell/
BSD 3-Clause "New" or "Revised" License
36 stars 5 forks source link

Use newer capi calling convention #51

Closed crclark closed 2 years ago

crclark commented 2 years ago

This avoids bugs on some platforms. See https://www.haskell.org/ghc/blog/20210709-capi-usage.html

crclark commented 2 years ago

Note: this change only affects manually-written bindings. Most bindings are generated by c2hs, which doesn't seem to support capi yet. https://github.com/haskell/c2hs/issues/277