
7 Mar
2016
7 Mar
'16
7:55 a.m.
Hello Andrey, I do not know what the right way to sovle your problem is, but if it is indeed the case that this cannot be done with Cabal, speaking as a Cabal developer, we definitely should try to fix this. A bug report would be much appreciated.
So, I have buildHook, copyHook and regHook replaced with wrappers which change PackageDescription parameter and call original function. Library is built and installed, but somewhere between build and copy actions there is still a message "Warning: modules not listed in foo.cabal for library component (add to other-modules)". I can't identify where it comes from.
I'm pretty sure this message comes from Stack; src/Stack/Types/Package.hs. Cheers, Edward