haskell / haskell/haskell-language-server
Erroneous error triggered on `{- # -}` (`#` is surrounded by whitespace)
- 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.