Equational constraint produces syntactically invalid result #267
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#267
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?
Running brittany 0.12.1.0 with the following program
outputs
ERROR: brittany pretty printer returned syntactically invalid result.
Here's what Brittany outputs with
--output-on-errors
:Also worth noting that the following equivalent program works fine:
Might be somewhat related to #258.
We already have some special-casing around this at
059bb9402e/src/Language/Haskell/Brittany/Internal/LayouterBasics.hs (L235-L239)
I wonder why this does not trigger here.
Should be fixed in
77d6d5b553
, will merge into master if CI is green in a few minutes.fixed in 0.12.1.1