
Ivan Lazar Miljenovic schrieb:
Johannes Waldmann
writes: Duncan Coutts
writes: Your .cabal file probably does not list the "other-modules" as it should, so Cabal does not know that the other modules exist. Ah.
Strange though that it seems to be able to do lots of reasonable things (build the executable, build all the API docs) without this "other-modules" section.
The executable bit cheats: since it just calls "ghc --make Main.hs", GHC will bring in all the other modules. However, I don't think in general that those other modules will be included into the tarball in question since Cabal doesn't know to include them.
On "cabal install" GHC will only install object files of modules that are explicitly listed. This will not lead to errors when compiling dependent libraries, but when linking dependent executables.