-ddump-minimal-imports should preserve "hiding" imports
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.
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |