[GHC] #16078: Hide -Weverything warnings for GHCi internals

#16078: Hide -Weverything warnings for GHCi internals -------------------------------------+------------------------------------- Reporter: crockeea | Owner: (none) Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 8.6.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Incorrect Unknown/Multiple | error/warning at compile-time Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Consider Bar.hs {{{ module Bar where }}} Main.hs {{{ import Bar main :: IO () main = print "" }}} `stack ghci Main.hs --ghc-options -Weverything` produces {{{ ... GHCi, version 8.6.2: http://www.haskell.org/ghc/ :? for help <interactive>:1:1: warning: [-Wmissing-local-signatures] Polymorphic local binding with no type signature: _compileParsedExpr :: forall a. GHC.Types.IO a -> GHC.Types.IO a <interactive>:1:1: warning: [-Wmissing-import-lists] The module `Prelude' does not have an explicit import list Loaded GHCi configuration from C:\Users\ericcro\Desktop\VPC-Key- Distribution\src\.ghci <no location info>: warning: [-Wmissing-home-modules] Modules are not listed in command line but needed for compilation: Bar [1 of 2] Compiling Bar ( Bar.hs, interpreted ) ... }}} Those three errors have nothing to do with my code, and seem to be related to the internals of how GHCi works. It would be nice to hide all three. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16078 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16078: Hide -Weverything warnings for GHCi internals -------------------------------------+------------------------------------- Reporter: crockeea | Owner: (none) Type: bug | Status: new Priority: low | Milestone: Component: GHCi | Version: 8.6.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect | Unknown/Multiple error/warning at compile-time | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by crockeea): * component: Compiler => GHCi -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16078#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16078: Hide -Weverything warnings for GHCi internals -------------------------------------+------------------------------------- Reporter: crockeea | Owner: (none) Type: bug | Status: new Priority: low | Milestone: Component: GHCi | Version: 8.6.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect | Unknown/Multiple error/warning at compile-time | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RolandSenn): The first two warning messages are related to GHCi internal processing, however not the third one! The third one can be avoided by mentioning ''Bar.hs'' on the command line. eg: `stack ghci Main.hs Bar.hs --ghc-options -Weverything` -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16078#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16078: Hide -Weverything warnings for GHCi internals -------------------------------------+------------------------------------- Reporter: crockeea | Owner: (none) Type: bug | Status: new Priority: low | Milestone: Component: GHCi | Version: 8.6.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect | Unknown/Multiple error/warning at compile-time | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by crockeea): I question the utility of warning about missing-home-modules in GHCi, when this warning was originally introduced (#13129) to solve a Cabal problem. Does anyone actually load GHCi by listing all the modules, and what is gained by doing so? I frequently use GHCi with large projects where I'm definitely only going to list the top module on the command line. Perhaps this should be a GHC- only warning? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16078#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16078: Hide -Weverything warnings for GHCi internals -------------------------------------+------------------------------------- Reporter: crockeea | Owner: (none) Type: bug | Status: new Priority: low | Milestone: Component: GHCi | Version: 8.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect | Unknown/Multiple error/warning at compile-time | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by crockeea): * version: 8.6.2 => 8.7 Old description:
Consider
Bar.hs {{{ module Bar where }}}
Main.hs {{{ import Bar
main :: IO () main = print "" }}}
`stack ghci Main.hs --ghc-options -Weverything` produces
{{{ ... GHCi, version 8.6.2: http://www.haskell.org/ghc/ :? for help
<interactive>:1:1: warning: [-Wmissing-local-signatures] Polymorphic local binding with no type signature: _compileParsedExpr :: forall a. GHC.Types.IO a -> GHC.Types.IO a
<interactive>:1:1: warning: [-Wmissing-import-lists] The module `Prelude' does not have an explicit import list Loaded GHCi configuration from C:\Users\ericcro\Desktop\VPC-Key- Distribution\src\.ghci
<no location info>: warning: [-Wmissing-home-modules] Modules are not listed in command line but needed for compilation: Bar [1 of 2] Compiling Bar ( Bar.hs, interpreted ) ... }}}
Those three errors have nothing to do with my code, and seem to be related to the internals of how GHCi works. It would be nice to hide all three.
New description: Consider Bar.hs {{{ module Bar where }}} Main.hs {{{ import Bar main :: IO () main = print "" }}} `ghci Main.hs -Weverything` produces {{{ ... GHCi, version 8.7.20190113: http://www.haskell.org/ghc/ :? for help <interactive>:1:1: warning: [-Wmissing-local-signatures] Polymorphic local binding with no type signature: _compileParsedExpr :: forall a. GHC.Types.IO a -> GHC.Types.IO a <interactive>:1:1: warning: [-Wmissing-import-lists] The module `Prelude' does not have an explicit import list <no location info>: warning: [-Wmissing-home-modules] Modules are not listed in command line but needed for compilation: Bar [1 of 2] Compiling Bar ( Bar.hs, interpreted ) ... }}} Those three errors have nothing to do with my code, and seem to be related to the internals of how GHCi works. It would be nice to hide all three. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16078#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC