haskell / haskell/haskell-language-server
HLS adds type signature to TH declaration into wrong declaration group
Open
component: ghcide
type: bug
- Dominant language
- Haskell
- Stars
- 3k
- Forks
- 455
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 11
Description
```haskell
[d|foo = 1|]
```
HLS helpfully suggests adding the signature `foo :: Num p => p` in the preceding mutually-recursive groups of declarations (i.e. above the splice) when the type should be inserted below.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.