
#7963: -ddump-minimal-imports should preserve "hiding" imports -----------------------------+---------------------------------------------- Reporter: dsf | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.6.2 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- An input file like {{{ {-# LANGUAGE OverloadedStrings #-} module Hiding where import Prelude hiding (writeFile, unlines) import Data.Text (unlines) import Data.Text.IO (writeFile) main :: IO () main = writeFile "/tmp/foo" (unlines ["hello", "world"]) }}} compiled with -ddump-minimal-imports produces a .imports file containing {{{ import Data.Text ( unlines ) import Data.Text.IO ( writeFile ) }}} Without the import of Prelude the original file won't compile with the new imports. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7963 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler