List in last line of do-block prevents formatting #296
Labels
No Label
blocked: dependency
blocked: info-needed
bug
duplicate
enhancement
fixed in HEAD
help wanted
hs:arrows
hs:brackets
hs:classes
hs:comments
hs:do-notation
hs:guards
hs:lists
hs:operators
hs:patterns
hs:records
hs:types
invalid
language extension support
layouting
needs confirmation
priority: high
priority: low
question
revisit before next release
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: hexagoxel/brittany#296
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
I have the following function:
This function compiles but when i run brittany on the source file then it errors out with
ERROR: brittany pretty printer returned syntactically invalid result.
Without this function the source file can be reformatted just fine.
Sounds related to #290, in that formatting things in
do
notation is different that regular code. Here's what Brittany 0.12.1.1 outputs (using--output-on-errors
):As a workaround, you can pass the list to a function like
id
. Or you can explicitly build the list using(:)
.