
#13129: Warn about home module not listed on command line -------------------------------------+------------------------------------- Reporter: Yuras | Owner: Yuras Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): phab:D2977 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Yuras): * owner: => Yuras @@ -2,1 +2,1 @@ - https://github.com/haskell/cabal/pull/1455 + https://github.com/haskell/cabal/issues/1746 New description: It is an attempt to fix this cabal issue: https://github.com/haskell/cabal/issues/1746 Basically, when user fails to list all modules in `exposed-modules` or `other-modules`, cabal produces broken package. The idea of the fix is to teach GHC to warn about home modules (not from an other package), that are not explicitly listed in command line. Option name `-Wmissing-home-modules` is a subject for bikeshedding. -- Comment: Oops, the link was wrong, sorry. The problem: when user fail to list a module in cabal file, then the package successfully builds, but the corresponding `.o` file is not included into the library. As a result, the package is unusable. One can argue that it is Cabal issue, and GHC has nothing to do with that. But fixing it on Cabal side is relatively hard. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13129#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler