Skip to content

Suggest qualified imports even if the qualified name is used #1424

Closed
@Jashweii

Description

@Jashweii
import qualified Data.Text.IO as Text
import qualified Data.Text as Text
x :: Text.Text -- from Data.Text
x = Text.empty -- from Data.Text
y :: IO ()
y = Text.putStrLn x -- from Data.Text.IO

Commenting out either of the imports will not give import suggestions, as there is already an import qualified as Text.
However if you comment out both you will get import suggestions (and can use of them, before you get the above issue)

GHC 8.10.4, cabal 3.2.0.0, stack 2.5.1 (unused), hls 0.9.0.0 (built from latest source), vscode

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: ghcidetype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions