I’m currently wrapping a C(++) API onto Haskell and stumbled upon this Haskell-Wiki page stating that ccall
is “discouraged”. The article doesn’t mention why that is, and googling “ccall discouraged” yields no good results.
I’ve tried replacing ccall
with capi
, since that’s all there is to do apparenly, but it didn’t work completely, since wrapper
isn’t supported. So two questions:
- Why is
ccall
discouraged? - What do I do to replace
wrapper
incapi
?