Skip to content
New issue

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

Generalize to multiple C libraries #294

Open
edsko opened this issue Nov 20, 2024 · 1 comment
Open

Generalize to multiple C libraries #294

edsko opened this issue Nov 20, 2024 · 1 comment

Comments

@edsko
Copy link
Collaborator

edsko commented Nov 20, 2024

(This could be considered an instance of #75.)

Suppose we are generating bindings for multiple C libraries, and those libraries have inter-dependencies; perhaps library A exports some types that are used by library B. Then we should be able to generate bindings for library B in such a way that the bindings for A and B can be used together.

@edsko edsko added this to the 1: `Storable` instances milestone Nov 20, 2024
@phadej
Copy link
Collaborator

phadej commented Nov 26, 2024

I guess this is a generalization of having "stdlib prelude + header" to "stdlib prelude + some libraries + header". We'd need a way to configure that some (intermediate) types are from some 3rd party module.

Then we can process various "libraries" separately.

As I said in #75, trying to process into multiple modules would not work, not with Cabal-like 1-to-1 preprocessor support, not really with TH either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants