haskell / haskell/haskell-language-server
Automatic import of pattern synonyms does not import the correct name
Open
component: ghcide
Hackathon
type: bug
- Dominant language
- Haskell
- Stars
- 3k
- Forks
- 455
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 11
Description
With files `Foo.hs` and `Bar.hs`
```haskell
module Foo where
pattern P = ()
```
```haskell
module Bar where
bar = P
```
in `Bar.hs` observe that the code actions available include `import Foo(P)`, not `import Foo(pattern P)`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.