[GHC] #13129: Warn about home module, not listed in commang line

#13129: Warn about home module, not listed in commang line -------------------------------------+------------------------------------- Reporter: Yuras | Owner: Type: feature | Status: new request | Priority: normal | Milestone: Component: Compiler | Version: 8.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- It is an attempt to fix this cabal issue: https://github.com/haskell/cabal/pull/1455 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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13129 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13129: Warn about home module, not listed in commang line -------------------------------------+------------------------------------- Reporter: Yuras | Owner: 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 hvr): * differential: => phab:D2977 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13129#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13129: Warn about home module, not listed in commang line -------------------------------------+------------------------------------- Reporter: Yuras | Owner: 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: | -------------------------------------+------------------------------------- Comment (by dfeuer): The referenced issue is a closed Cabal pull request. Can you try to explain exactly what the problem is, and why special GHC support is needed to solve it? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13129#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13129: Warn about home module not listed on command line -------------------------------------+------------------------------------- Reporter: Yuras | Owner: 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: | -------------------------------------+------------------------------------- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13129#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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

#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: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#13129: Warn about home module not listed on command line -------------------------------------+------------------------------------- Reporter: Yuras | Owner: Yuras Type: feature request | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: fixed | 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 bgamari): * status: new => closed * resolution: => fixed * milestone: => 8.2.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13129#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC