Using operators beginning with : (colon) in prefix notation leads to a "syntactically invalid result" #256

Closed
opened 2019-08-29 21:56:17 +02:00 by JakobBruenker · 2 comments
JakobBruenker commented 2019-08-29 21:56:17 +02:00 (Migrated from github.com)
f ((:) a as) = undefined

leads to ERROR: brittany pretty printer returned syntactically invalid result.

The same happens for any other operator that starts with :.

This doesn't happen with

f (a : as) = undefined

(Ironically, the reason I'm using them in prefix notation is because hlint can only deal with (:#) in prefix notation.)

```haskell f ((:) a as) = undefined ``` leads to `ERROR: brittany pretty printer returned syntactically invalid result.` The same happens for any other operator that starts with `:`. This doesn't happen with ```haskell f (a : as) = undefined ``` (Ironically, the reason I'm using them in prefix notation is because hlint can *only* deal with `(:#)` in prefix notation.)
lspitzner commented 2019-09-03 00:26:13 +02:00 (Migrated from github.com)

Fixed in 702b993dab, will merge into master once tests are green.

Fixed in 702b993dabe54efdf0736a469df40e04dc2c9a8b, will merge into master once tests are green.
tfausak commented 2020-07-21 14:58:08 +02:00 (Migrated from github.com)

Looks like this is fixed, at least in version 0.12.1.1.

Looks like this is fixed, at least in version 0.12.1.1.
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#256
There is no content yet.