generate C wrappers for FFI functions
We often need to go via a wrapper when calling a C function using the FFI, because the function is part of the API but not the ABI (e.g. it is defined using a CPP macro, or renamed using a CPP macro). In order to support these calls more easily, we could have GHC automatically generate the appropriate C wrappers into the stub file.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.8.3 |
| Type | Task |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler (FFI) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown |
| Architecture | Unknown |