Lennart Spitzner
c701e5d00b
Fix #26 : Fix comment glitch in patternbind layouting
...
Prevent single-line layout when it would not even be
a single line due to a comment.
This patch might be a bit over-eager in at least one
case (I think you'd get a two-line layout with a
multiway-if and a comment _after_ the where binding).
2017-05-02 17:10:04 +02:00
Lennart Spitzner
c3dc3b6074
And one more touch to ExplicitList
2017-05-02 16:32:43 +02:00
Lennart Spitzner
ca42178eff
Improve tuple layouting (also fixes #18 for tuples)
2017-05-02 16:21:13 +02:00
Lennart Spitzner
f6324da600
Fix ExplicitList comment insertion ( fixes #18 )
2017-05-02 14:20:58 +02:00
Lennart Spitzner
2dd6fe83f5
Add documentation and examples; Add debugging flag; Minor refactors
2017-03-30 22:47:00 +02:00
Lennart Spitzner
a7e4bdc168
Fix #16 ; Improve layouting in two cases; Add comments
...
- the #16 fix is a one-liner:
Throw `nub` at spacings before pruning.
- Expr/OpApp layouting: Force single-line for children in
the params-in-multiple-lines-right-of-the-function case.
- Expr/HsIf layouting: Insert a SetBaseY to prevent
"then"/"else" being placed left of "if".
2017-03-16 23:02:11 +01:00
Lennart Spitzner
575d530188
Use ExactPrintFallback for unknown constructs
...
fixes #11
2017-03-06 12:45:19 +01:00
Lennart Spitzner
a29836d09c
Refactor module structure; Clean up imports
2016-09-04 00:24:20 +02:00
Lennart Spitzner
b03996e401
Apply brittany on parts of its source; Add comments
2016-09-03 23:02:32 +02:00
Lennart Spitzner
48b2057d84
Improve horizontal alignments significantly (patterns)
2016-09-03 21:32:18 +02:00
Lennart Spitzner
fc47372005
Restore aligning on non-function bindings
2016-09-02 00:38:56 +02:00
Lennart Spitzner
395fe02644
Stop aligning patterns for different functions
2016-09-02 00:06:49 +02:00
Lennart Spitzner
fedfeaaecd
Improve HsLam and OpApp layouting
2016-09-01 13:49:30 +02:00
Lennart Spitzner
8277e85187
Fix NonBottom/setBaseY getSpacing(s) interaction
...
- Rename NonBottom -> Always
2016-09-01 12:35:11 +02:00
Lennart Spitzner
cc9b1f6885
Fix comment placement for HsIf/HsLet
2016-08-18 15:27:10 +02:00
Lennart Spitzner
d0fcfc563e
Fix if-then-else comment placement issue
2016-08-18 01:14:11 +02:00
Lennart Spitzner
e67855fd98
Fix list comprehension comment placement issue
2016-08-18 00:59:12 +02:00
Lennart Spitzner
0229a50785
Replace all `briDocByExact` by `unknownNodeError`
2016-08-12 15:01:15 +02:00
Lennart Spitzner
39e565c182
Fix RecordUpd comment placement bug
2016-08-12 15:01:15 +02:00
Lennart Spitzner
dd60900da4
Layout NegApp, RecordUpd with pun; Add some AnnKW
2016-08-12 15:01:15 +02:00
Lennart Spitzner
5166b3dd9e
Improve comment handling (Add KW node; annotation transform)
2016-08-12 15:01:14 +02:00
Lennart Spitzner
214653bee5
Handle wildcards in expr/type
2016-08-07 14:26:27 +02:00
Lennart Spitzner
cd9474a969
Change layouting for lambda, app; Fix exponential behaviour
2016-08-06 19:36:47 +02:00
Lennart Spitzner
0314569276
Implement/Improve record pun handling (Pat/Expr)
2016-08-06 15:03:45 +02:00
Lennart Spitzner
f54e3c6079
Some layouting improvements/fixes
2016-08-06 14:07:52 +02:00
Lennart Spitzner
1c5795f718
Add Set/ForceParSpacing flag special bridoc constructors
2016-08-06 13:51:54 +02:00
Lennart Spitzner
87e81189c9
Various layouting fixes
2016-08-04 15:12:05 +02:00
Lennart Spitzner
1ce40c861c
Various minor layouting fixes
2016-08-03 22:13:41 +02:00
Lennart Spitzner
986a720ca8
Make newlining "lazy" in backend
2016-08-02 13:54:56 +02:00
Lennart Spitzner
f96dceb74b
Implement HsLet/ExprWithTySig/NPat
2016-08-02 13:54:56 +02:00
Lennart Spitzner
1dafdab68a
Cleanup outcommented,old code
2016-07-30 15:56:02 +02:00
Lennart Spitzner
60d1bc5176
Squash previous history
2016-07-30 15:22:07 +02:00