brittany pretty printer returned syntactically invalid result. #89

Closed
opened 2017-12-22 13:21:29 +01:00 by lpil · 4 comments
lpil commented 2017-12-22 13:21:29 +01:00 (Migrated from github.com)

Hello!

I've found some Haskell code that Brittany doesn't know how to format:

type instance AuthServerData (AuthProtect "JWT") = DBUser

Trying to format this returns this error in the command line

ERROR: brittany pretty printer returned syntactically invalid result.

Thanks!

Hello! I've found some Haskell code that Brittany doesn't know how to format: ```haskell type instance AuthServerData (AuthProtect "JWT") = DBUser ``` Trying to format this returns this error in the command line ``` ERROR: brittany pretty printer returned syntactically invalid result. ``` Thanks!
lspitzner commented 2017-12-22 14:06:36 +01:00 (Migrated from github.com)

Yeah this is https://github.com/alanz/ghc-exactprint/issues/52. It requires either a fix upstream or brittany must learn to layout type instances itself.

Yeah this is https://github.com/alanz/ghc-exactprint/issues/52. It requires either a fix upstream or `brittany` must learn to layout `type instance`s itself.
lpil commented 2017-12-22 14:28:24 +01:00 (Migrated from github.com)

Thanks for the update :)

By the way, thank you so much for making this tool. I've only just started using it but I feel the output format is very nice!

Thanks for the update :) By the way, thank you so much for making this tool. I've only just started using it but I feel the output format is very nice!
lspitzner commented 2018-04-25 21:35:58 +02:00 (Migrated from github.com)

I noticed this bug cannot be prevented by using inline-config (in general i was hoping that -- brittany-disable-next-binding would help work around any unimplemented stuff), so instead I implemented a workaround for this in e9aacb27ff.

I noticed this bug cannot be prevented by using inline-config (in general i was hoping that `-- brittany-disable-next-binding` would help work around any unimplemented stuff), so instead I implemented a workaround for this in e9aacb27ffcd1bdf350d59a56178688284cd4f8f.
lspitzner commented 2018-05-08 20:47:25 +02:00 (Migrated from github.com)

fixed in 0.11.0.0

fixed in 0.11.0.0
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#89
There is no content yet.