[GHC] #15838: Warn about unused dependencies

#15838: Warn about unused dependencies -------------------------------------+------------------------------------- Reporter: Yuras | Owner: (none) Type: feature | Status: new request | Priority: normal | Milestone: Component: Compiler | Version: 8.6.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: -------------------------------------+------------------------------------- GHC loads packages lazily, so at the end of compilation (at least in `--make` mode) it knows all the dependencies, required to compile the code. See `eps_PIT` in `ExternalPackageState`. If we compare this list with the list of packages, passed on command like via `--package-id`, then we'll get a list of unused dependencies. I propose to add a flag `-Wunused-packages`, off by default, which will report the unused packages if any. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15838 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15838: Warn about unused dependencies -------------------------------------+------------------------------------- Reporter: Yuras | Owner: Yuras Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.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): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Yuras): * owner: (none) => Yuras -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15838#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15838: Warn about unused dependencies -------------------------------------+------------------------------------- Reporter: Yuras | Owner: Yuras Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.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:D5285 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Yuras): * differential: => Phab:D5285 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15838#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC