You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thus c2hs expects two arguments in the C function, but there was only one.
Naturally c2hs needs to fail generating the bindings, but the failure should be informative.
Currently it crashes at runtime with an error message which doesn't tell you where in your code you have a problem;
c2hs: src/C2HS/Gen/Bind.hs:(1426,5)-(1444,66): Non-exhaustive patterns in function addDft
Turning the incomplete patterns warnings in c2hs back on;
src/C2HS/Gen/Bind.hs:1426:5: warning: [-Wincomplete-patterns]
Pattern match(es) are non-exhaustive
In an equation for ‘addDft’:
Patterns not matched:
(CHSPlusParm _:_) []
(CHSParm _ _ True _ _ _ _:_) [_]
I also filed a bug to fix the incomplete patterns; #179.
The text was updated successfully, but these errors were encountered:
kolmodin
added a commit
to kolmodin/c2hs
that referenced
this issue
Jan 21, 2017
I had written this c2hs code;
But the C code had been updated from
char*, size_t
togrpc_slice
;Thus c2hs expects two arguments in the C function, but there was only one.
Naturally c2hs needs to fail generating the bindings, but the failure should be informative.
Currently it crashes at runtime with an error message which doesn't tell you where in your code you have a problem;
Turning the incomplete patterns warnings in c2hs back on;
I also filed a bug to fix the incomplete patterns; #179.
The text was updated successfully, but these errors were encountered: