Justification of infix patterns #289
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#289
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 know this would require knowing the fixity of patterns, nevertheless:
It would be nice if brittany would left or right justify patterns as appropriate depending on their associativity direction. For instance (given
infixr :
)Currently brittany formats thusly, which at a glance implies
:
associates to the leftPerhaps it would be nicer to format as
or even
This is a very minor issue!
This is similar to #79 and #85 except that it deals with patterns rather than expressions.