haskell / haskell/haskell-language-server

Erroneous error triggered on `{- # -}` (`#` is surrounded by whitespace)

Open
#4,940 1 comment 1 reaction 0 assignees View on GitHub
GHC status: blocked type: bug
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

### Your environment

Which OS do you use? ArchLinux up-to-date

Which version of GHC do you use and how did you install it? 9.14.1 via GHCup

How is your project built (alternative: link to the project)? `ghc --make hello.hs && ./hello`

Which LSP client (editor/plugin) do you use? Vim + YCM

Which version of HLS do you use and how did you install it? 2.14.0.0 via GHCup

Have you configured HLS in any way (especially: a `hie.yaml` file)?

### Steps to reproduce

Open a file with this content
```haskell
main :: IO ()
main = putStrLn "Hello World"
{- # -}
```

### Expected behaviour

HLS should show no errors.

### Actual behaviour

HLS shows the error `parse error on input ‘{’ [GHC-58481]`.

Even executing `haskell-language-server-wrapper hello.hs` (so taking the IDE out of the equation) shows the same error.

### Debug information

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.