We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
module A where data Foo = Foo
module B where foo :: Foo foo = undefined
Pressing Ctrl+. on Foo in Module B and adding the missing import adds import A (Foo(Foo)) to the import list.
Ctrl+.
Foo
B
import A (Foo(Foo))
Only the type name gets imported, not the constructor.
The constructor gets imported as well, even though it is not required.
Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools:
haskell-language-server --probe-tools
haskell-language-server-wrapper --probe-tools
haskell-language-server version: 1.2.0.0 (GHC: 8.10.4) (PATH: /home/finn/.config/Code/User/globalStorage/haskell.haskell/haskell-language-server-1.2.0-linux-8.10.4) (GIT hash: be2071e985cb417f984ab00a1aad76dee02d6d0b) Tool versions found on the $PATH cabal: 3.0.0.0 stack: 2.5.1 ghc: 8.8.4
Which OS do you use: Fedora 34
Which lsp-client do you use: VS Code
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Steps to reproduce
Pressing
Ctrl+.
onFoo
in ModuleB
and adding the missing importadds
import A (Foo(Foo))
to the import list.Expected behaviour
Only the type name gets imported, not the constructor.
Actual behaviour
The constructor gets imported as well, even though it is not required.
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:haskell-language-server version: 1.2.0.0 (GHC: 8.10.4) (PATH: /home/finn/.config/Code/User/globalStorage/haskell.haskell/haskell-language-server-1.2.0-linux-8.10.4) (GIT hash: be2071e985cb417f984ab00a1aad76dee02d6d0b) Tool versions found on the $PATH cabal: 3.0.0.0 stack: 2.5.1 ghc: 8.8.4
Which OS do you use:
Fedora 34
Which lsp-client do you use:
VS Code
The text was updated successfully, but these errors were encountered: