Missing modules in exposed-modules
and linker errors
#8902
Labels
cabal-install: cmd/run
re: user experience
User experience (UX) issue
re: warnings
Concerning warnings printed by cabal
type: enhancement
Describe the bug
Related: #1746
I recently have helped a user with a well know error, forgetting to put modules in
exposed-modules
(edit: actually,other-modules
, but it is the same problem).What we know:
-Wmissing-home-modules
warning gets printed.The hint got probably overlooked because of the barrage of abuse by the linker
and the fact that warnings are not displayed again on a new
cabal run
.Expected behavior
The user notices the error, is able to understand it and fix it by themselves.
I would not know precisely what to suggest though: upgrading the warning to error could be annoying to a number of developers. Redirecting linker output somewhere too could break some dev setups.
To reproduce
Create a lib/exe
.cabal
, forget to expose a module in the lib that is needed by the exe.The text was updated successfully, but these errors were encountered: