I’m now trying to design an extensible and customizable mechanism for providing non-JS foreign files for alternative backends.
I want to make an index repository called a mirror which can map a pursuit package(like
purescript-prelude) to a GitHub repo which provides FFI files for specific backends.
However, some problem got raised now:
I cannot track the source of each
foreign.js: I can only know the qualified name of the module a
foreign.js is from, but not the package, or the version of the source package.
If I don’t know where a
foreign.js is from, I still have some approaches to work things out.
The unsolvable problem is I can’t know the package version of a
foreign.js: if the author of a pursuit library uses different JS FFI files, I will fail at providing FFI files for other backends because I can’t know files of which version to provide.