haskell / c2hs

c2hs is a pre-processor for Haskell FFI bindings to C libraries
http://hackage.haskell.org/package/c2hs
Other
198 stars 50 forks source link

bool wrappers for unnamed parameters don't work #131

Closed ian-ross closed 9 years ago

ian-ross commented 9 years ago

If you have a C function defined as

bool fun(int, char *);

then creating the wrapper function for marshalling the bool return value will fail with an unsatisfied pattern match in C2HS.Gen.Wrapper because the makeArg function there only matches C function parameters with names.