Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bug in auto extending import #1301

Closed
berberman opened this issue Feb 3, 2021 · 0 comments · Fixed by #1302
Closed

A bug in auto extending import #1301

berberman opened this issue Feb 3, 2021 · 0 comments · Fixed by #1302
Labels
component: ghcide type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@berberman
Copy link
Collaborator

Your environment

Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools:

haskell-language-server version: 0.9.0.0 (GHC: 8.10.3) (PATH: /home/berberman/.cabal/store/ghc-8.10.3/haskell-language-server-0.9.0.0-fc3fc5c6bb9dbe9d059eeb2e8438fa71dbd18c178e95fd1b51ebde0ab2e9d440/bin/haskell-language-server)
Tool versions found on the $PATH
cabal:          3.2.0.0
stack:          Not found
ghc:            8.10.3

Which lsp-client do you use:
vscode

Steps to reproduce

Create A.hs:

module A where

data TyCon = DataConA | DataConB

And import TyCon(..) in another module:

module Test where

import A (TyCon (..))

Expected behaviour

DataConA is already in scope, so there's no need to extend the import list.

Actual behaviour

Peek

@berberman berberman added type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. component: ghcide labels Feb 3, 2021
@mergify mergify bot closed this as completed in #1302 Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ghcide type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
1 participant