[GHC] #9216: hiding imports doesn't seem to check if an import exists

#9216: hiding imports doesn't seem to check if an import exists --------------------------+------------------------------------------------ Reporter: flazz | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: | Version: 7.6.3 Compiler | Operating System: Unknown/Multiple Keywords: import | Type of failure: GHC accepts invalid program hiding | Test Case: Architecture: | Blocking: Unknown/Multiple | Difficulty: | Unknown | Blocked By: | Related Tickets: | --------------------------+------------------------------------------------ {{{ module Main where import Prelude hiding (thisDoesNotExist0x1234) -- should it fail here? main = putStrLn "hiya" }}} This seems to interpret just fine in ghci and compile fine in ghc – it seems that it shouldn't. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9216 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9216: hiding imports doesn't seem to check if an import exists ------------------------------------------------+-------------------------- Reporter: flazz | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: invalid | Keywords: import Operating System: Unknown/Multiple | hiding Type of failure: GHC accepts invalid program | Architecture: Test Case: | Unknown/Multiple Blocking: | Difficulty: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Changes (by goldfire): * status: new => closed * resolution: => invalid Comment: This warning is reported by `-fwarn-dodgy-imports`. This is not considered an error, to aid in backward compatibility. In your example, one assumes that some past Prelude ''did'' export that symbol. Now that Prelude no longer does, it seems a little silly to stop your whole module from compiling. Thanks for reporting! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9216#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9216: hiding imports doesn't seem to check if an import exists
------------------------------------------------+--------------------------
Reporter: flazz | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: invalid | Keywords: import
Operating System: Unknown/Multiple | hiding
Type of failure: GHC accepts invalid program | Architecture:
Test Case: | Unknown/Multiple
Blocking: | Difficulty:
| Unknown
| Blocked By:
| Related Tickets:
------------------------------------------------+--------------------------
Comment (by Simon Peyton Jones
participants (1)
-
GHC