We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppose I have a struct defined like this:
typedef struct _alpm_depmissing_t { char *target; alpm_depend_t *depend; char *causingpkg; } alpm_depmissing_t;
alpm_depend_t is already associated with a Haskell type using the #pointer hook:
alpm_depend_t
data AlpmDepend {#pointer *alpm_depend_t AlpmDependPtr -> AlpmDepend #}
now I define a accessor using the #get hook:
getDep = {#get struct alpm_depmissint_t.depend #}
this is the code generated by c2hs:
getDep = (\ptr -> do {C2HSImp.peekByteOff ptr 8 :: IO (C2HSImp.Ptr ())})
but the return type should be AlpmDependPtr (Ptr AlpmDepend) instead of Ptr ()
AlpmDependPtr (Ptr AlpmDepend)
Ptr ()
The text was updated successfully, but these errors were encountered:
nvm
Sorry, something went wrong.
No branches or pull requests
Suppose I have a struct defined like this:
alpm_depend_t
is already associated with a Haskell type using the #pointer hook:now I define a accessor using the #get hook:
this is the code generated by c2hs:
but the return type should be
AlpmDependPtr (Ptr AlpmDepend)
instead ofPtr ()
The text was updated successfully, but these errors were encountered: