Skip to content

Parser error on the -- $ chain of characters #148

Closed
@sir4ur0n

Description

@sir4ur0n

While trying to fix the hie.yaml for #121 I noticed 2 tests have a parsing error.

The guilty seems to be the -- $ chain of characters in an implementation of function

Minimal example:

foo :: ()
foo =
  let bar = ()
  -- some comment
  -- $ some other comment
   in bar

The line -- $ some other comment has an error:

/home/sir4ur0n/code/haskell-language-server/src/Ide/Plugin/Ormolu.hs:42:3: error:
    parse error on input ‘-- $ some other comment’parser

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions