Skip to content

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

Description

@Aster89

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    GHCissues with particular GHC versionsstatus: blockedNot actionable, because blocked by upstream/GHC etc.type: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions