Newlines in QuasiQuotes break parsing #193

Closed
opened 2018-10-19 17:38:00 +02:00 by dredozubov · 1 comment
dredozubov commented 2018-10-19 17:38:00 +02:00 (Migrated from github.com)

If I try to process this piece of code with brittany:

  preview _head <$> pgQuery [sqlExp|
    SELECT
      foo
    FROM boo
    WHERE id = zoo
    LIMIT 1|]

I get a

ERROR: encountered unknown syntactical constructs:
HsSpliceE{}

However it parses this code:

  preview _head <$> pgQuery [sqlExp| SELECT foo FROM boo WHERE id = zoo LIMIT 1|]
If I try to process this piece of code with brittany: ``` preview _head <$> pgQuery [sqlExp| SELECT foo FROM boo WHERE id = zoo LIMIT 1|] ``` I get a ``` ERROR: encountered unknown syntactical constructs: HsSpliceE{} ``` However it parses this code: ``` preview _head <$> pgQuery [sqlExp| SELECT foo FROM boo WHERE id = zoo LIMIT 1|] ```
eborden commented 2018-10-19 19:12:39 +02:00 (Migrated from github.com)

This is a known issue, documented here: https://github.com/lspitzner/brittany/issues/90

This is a known issue, documented here: https://github.com/lspitzner/brittany/issues/90
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#193
There is no content yet.