Skip to content

-ddump-minimal-imports should preserve imports of Prelude when -XNoImplicitPrelude is enabled

Here is one more dump-minimal imports bug - for this module:

module Foo (dropWhile) where
import Data.List (dropWhile)

ghc -ddump-minimal-imports outputs

import Data.List ()

but the original module needs the import of dropWhile to compile.

Trac metadata
Trac field Value
Version 7.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Edited by dsf
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information