haskell / haskell/c2hs

capi calling convention

Open
#277 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
211
Forks
52
PR merge metrics
No merged PRs in 30d

Description

According to this [blog post](https://www.haskell.org/ghc/blog/20210709-capi-usage.html), the `capi` calling convention added with the [CApiFFI](https://downloads.haskell.org/ghc/9.0.1/docs/html/users_guide/exts/ffi.html?highlight=capiffi#extension-CApiFFI) language extension results in more portable code.

I don't see a way to use `capi` instead of `ccall` with `c2hs`. Is it possible? If not, please consider this issue a feature request. :smiley:

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.