Skip to content

Uninformative Parse error when QuasiQuotes Extension is not enabled #472

Open
@nineonine

Description

@nineonine

I was invoking parseFileWithComments and it would crash when parsing the module that contained quasi quotes:

authorizePayload :: ByteString
authorizePayload = [r|
  {"user": {"email": "[email protected]", "password":"secret"}}
  |]

The parse error is "empty string"

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions