haskell / haskell/haskell-language-server

HLS adds type signature to TH declaration into wrong declaration group

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.