Alignment of <-s is really aggressive #21
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#21
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?
When aligning things by hand, I usually decide not to if it would introduce "too much" spacing (where "too much" is some fuzzy thing based on gut feeling).
This is definitely too much:
Perhaps there could be a configurable maximum number of spaces, with alignment not done if it would introduce more than that many?
good idea. There is also "don't do alignment when the things being aligned are apart more than x lines", which is like the vertical version of this.
For the vertical version, I think it would be worth distinguishing lines of comments/whitespace, and lines of code.
For example, I align the
::
s here because there are only a few lines of comments between them:But I don't align the
->
s in the case here, because there is code in the way:yes, in fact i think not ignoring comments for this test would be much harder than what you propose, given how things are implemented :)
i hope these defaults are fine. please report if this doesn't work as expected.