Join GitHub today
cabal should alert the user about modules missing from other-modules #1700
If a required module is missing from "other-modules", cabal will produce a broken library that results in a non-obvious error, e.g.:
See https://gist.github.com/leonbaum/9164940 for full example.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
+1 for this. When I switched to ghc 7.8-rc2, because of a missing "other-modules" I got this error
with library-coverage enabled on a package that builds OK on 7.6.3. I spent a lot of time figuring out why, thought it was a problem with the rc2.
If parsing the source files for this check is beyond the boundaries of cabal, at least it could be possible to make the error only surface when testing the distribution file and ensuring that if the hs-source-dirs are the correct ones the linker and compiler won't complain.