haskell / haskell/haskell-language-server

Automatic import of pattern synonyms does not import the correct name

Open
#627 10 comments 4 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.