Open edsko opened 1 week ago
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.
(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 libraryB
. Then we should be able to generate bindings for libraryB
in such a way that the bindings forA
andB
can be used together.