[Haskell-cafe] 1-to-many preprocessor in stack/Cabal builds

Edward Z. Yang ezyang at mit.edu
Mon Mar 7 07:55:49 UTC 2016


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


More information about the Haskell-Cafe mailing list