Commit Graph

20 Commits (05e00f39f2eed19e4347ef0a457785d98e687fd8)

Author SHA1 Message Date
Lennart Spitzner 05e00f39f2 Simplify/Optimize Decl:layoutPatternBindFinal 2023-04-22 19:54:24 +00:00
Lennart Spitzner b1e85de95d setParSpacing for operator-expression ending in par 2023-04-22 19:54:24 +00:00
Lennart Spitzner 99dc88e2f9 Improve one HsLet layout
- Allow parSpacing for single-clause layout
- Allow par/sl layout when no where-clause was present
  (not sure why this was disabled in the first place)
2023-04-22 19:54:24 +00:00
Lennart Spitzner f18fd0c4ba Dont flatten operators without surrounding parens 2023-04-22 19:54:24 +00:00
Lennart Spitzner e9f66b3fd8 Fix comment-after-context 2023-04-22 19:54:24 +00:00
Lennart Spitzner f2e0044c4a Fix comments moving after "where" 2023-04-22 19:54:24 +00:00
Lennart Spitzner bad95f3670 Use dependency-injection for ToBriDoc modules
I assume this makes inlining impossible, but it enables
parallel compilation of all these modules. In my tests
this reduce wall clock time to 92%, and with more cores
the benefit should be higher.
2023-04-22 19:54:24 +00:00
Lennart Spitzner 5e1452a5f0 Fix retain comments on matches (lambda rhs etc.) 2023-04-22 19:54:24 +00:00
Lennart Spitzner 73656eeff6 Implement fixity-aware-ops feature 2023-04-22 19:54:24 +00:00
Lennart Spitzner 4ea66b0e45 Fix double-printing of comments on certain data-decls 2023-04-22 19:54:24 +00:00
Lennart Spitzner cbfa0d6d22 Partially restore retaining-empty-lines behaviour
Currently works for do blocks, multi-line list literals, and
lambda-case cases (apart from top-level blank lines that
never got ignored).
2023-04-22 19:54:24 +00:00
Lennart Spitzner 5693be1be0 Make if-then-layout layout more consistent 2023-04-22 19:54:24 +00:00
Lennart Spitzner e92580429a Fix missing comment for MG 2023-04-22 19:54:24 +00:00
Lennart Spitzner 6f380f2be6 Change behaviour: Less par-spacing for function application 2023-04-22 19:54:24 +00:00
Lennart Spitzner 67a6ab8209 Behaviour addition: Allow par-spacing on HsApp 2023-04-22 19:54:24 +00:00
Lennart Spitzner c58bf7b845 Implement extension support - OverloadedRecordDot 2023-04-22 19:54:24 +00:00
Lennart Spitzner 278dcfc7c6 Fix block-comment delta position special case 2023-04-22 19:54:24 +00:00
Lennart Spitzner 7f5dc46798 Replace BriDoc+BriDocF with single BriDocW + type family 2023-04-22 19:54:24 +00:00
Lennart Spitzner 7db1028223 Reintroduce BDAnnotationKW in the form of BDEntryDelta 2023-04-22 19:54:24 +00:00
Lennart Spitzner 7ebd61db3d Refactor+Rewrite+Adaptation for ghc-9.2 support 2023-04-22 19:54:24 +00:00