Format let and in on a single line if they fit #73
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#73
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?
https://github.com/lspitzner/brittany/pull/66#issuecomment-348820992
Using the currently unreleased
IndentPolicyLeft
/ColumnAlignModeDisabled
config, Brittany formatslet ... in ...
like this:I expected both
let
andin
to be on a single line, like this:Indeed, the approach from
882a3b1a7a
can be applied to the relevant layouter inExpr.hs
too. I am a bit unsure though which combinations should be accepted, i.e. should the following layouts be possible:this boils down to permitting layouters
"let (single|multiline) in (single|multiline)" vs
"(let singleline in singleline | let multiline in multiline)"
I would prefer "let (single|multiline) in (single|multiline)". I don't particularly care about them matching; I want them to avoid wasting vertical space.
@lspitzner I believe you can close this with the merger of #97