-ddump-minimal-imports breaks qualified imports (import...as)
|Reported by:||guest||Owned by:|
|Keywords:||Cc:||aslatter@…, gwern0@…, fasta|
|Type of failure:||None/Unknown||Test Case:||T1792_imports|
|Related Tickets:||Differential Rev(s):|
Description (last modified by )
When using the
-ddump-minimal-imports option on a Haskell file, it breaks qualified imports.
Ie, suppose one has a line in a file thus:
import qualified Data.ByteString as B (putStr, readFile)
-ddump-minimal-imports will give you something like this:
import Data.ByteString(B.putStr, B.readFile)
There are 3 things wrong here:
readFileshould not be renamed thus, as obviously
Data.ByteStringhas nothing under those names
Data.ByteStringis no longer being imported under a different name, so all function uses relying on
B.putStretc. will break
- Finally, it's just ugly to have no spaces between the last letter of the module's name and the opening parenthesis.
I see this behavior under GHC 6.6.1, and asl of #haskell tells me he duplicated the import problem using GHCi version 126.96.36.19971019.
Change History (8)
comment:2 Changed 9 years ago by
|Milestone:||→ 6.10 branch|
|Priority:||normal → low|