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

GHC ghc-devs at haskell.org
Thu Dec 20 23:22:20 UTC 2018


#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


More information about the ghc-tickets mailing list