Ticket #852 (assigned enhancement)
Not possible to #include "*_stub.h" from C code
|Reported by:||dankna||Owned by:||dankna|
Cabal doesn't make it possible to #include "*_stub.h" files from C code, because those files have not yet been generated at the time that it wants to check for their existence, which is during "cabal configure".
At first I was going to ask for advice because I didn't really see a solution, but now that I think about it, I think correct behavior is to omit the check for whether stub files exist and compile, but to check for the existence of files which /could/ generate them, which is to say, are Haskell files and match the module portion of the name. So I'll implement that.