Auto extend import list in some needless cases #1308
Labels
component: ghcide
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-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-8f2c9238aa6456c28366c2c5b74966c6998aac099da88e4737c3be342793b2b1/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 B.hs:
Re-export
B
in A.hs:Then import
A
in Test.hs (the import declaration of moduleB
is prior to that of moduleA
):Type
K
in the type hole.Expected behaviour
K
has already been brought into scope byA
, so we don't need extend the import list ofB
.Actual behaviour
Extra information
The same thing happens to
Prelude
as well:The text was updated successfully, but these errors were encountered: