Skip to content

Uninformative Parse error when QuasiQuotes Extension is not enabled #472

@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": "foo@example.com", "password":"secret"}}
  |]

The parse error is "empty string"

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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