Taylor Fausak
392e5b7569
Fix many HLint warnings
2021-11-06 21:05:10 +00:00
Taylor Fausak
d03deccba8
Remove unnecessary export lists
2021-11-06 20:38:28 +00:00
Taylor Fausak
d1968b5de3
Remove redundant language extensions
2021-11-06 18:17:01 +00:00
Taylor Fausak
72fd6959f7
Don't enable any language extensions by default
2021-11-06 17:45:56 +00:00
Taylor Fausak
32da5defb5
Remove unused imports
2021-11-06 17:27:19 +00:00
Taylor Fausak
1e7a94e72e
Inline `prelude.inc`
2021-11-06 17:12:55 +00:00
Taylor Fausak
0c33d9a6fa
Remove redundant pattern matches
2021-11-06 17:01:11 +00:00
Taylor Fausak
116930ac2b
Get everything building with (only) GHC 9.0
2021-10-30 16:20:13 +00:00
Taylor Fausak
e36d9bc465
Drop support for GHC 8.4
2020-11-15 12:55:50 -05:00
Taylor Fausak
259c949211
Drop support for GHC 8.2
2020-11-15 12:55:50 -05:00
Taylor Fausak
096c438b23
Drop support for GHC 8.0
2020-11-15 12:55:50 -05:00
Ximin Luo
adb642353d
more GHC 8.10.1 fixes
2020-11-15 12:55:50 -05:00
Lennart Spitzner
5c64928972
Fix problem of do notation as left argument of an operator
2020-04-21 01:34:46 +02:00
Lennart Spitzner
4b673d1d9d
Fix bug in record layouting causing overflows
2020-02-25 17:55:20 +01:00
Lennart Spitzner
825ec425d4
Improve comments-affecting-layout behaviour for tuples ( #231 )
2020-02-13 19:04:49 +01:00
Lennart Spitzner
2b303b2a20
Fix additional indentation bug for let-in
2020-01-10 16:32:18 +01:00
Lennart Spitzner
e24271318d
Improve record-expression layouting
...
- Finish consolidation, clearing a TODO
- Fix two comment placement issues around record wildcards
- Fix regression in brittany-0.12 about layouting large
(multiline) record field updates
2019-12-05 14:30:50 +01:00
Lennart Spitzner
89b7655bac
Fix support for ghc-8.8
2019-09-29 21:45:46 +02:00
Lennart Spitzner
6879436e67
Fix lambdas with lazy/bang pattern as first argument
2019-09-03 01:10:38 +02:00
Lennart Spitzner
8861f16624
Fix comment handling with let-in
2019-09-02 17:04:44 +02:00
Lennart Spitzner
91d6e18aba
Adapt to ghc-8.8 (deps are not ready though)
2019-09-02 17:04:44 +02:00
pepe iborra
a79b5e1a4b
Add support for Implicit Params
...
I don't know what I'm doing, but it type checks
Closes #246
2019-07-14 23:31:11 +01:00
Evan Borden
988d5b4353
Add support for OverloadedLabels
...
`OverloadedLabels` is a simple enough extension to parse and format. It
is becoming more common with use of `generic-lens`. Since it can be
treated as a `HsVar` its implementation only requires using `docLit`,
along with some marshalling for dealing with `FastString`.
2019-06-23 19:31:05 -05:00
Lennart Spitzner
42f566b94a
Support QuasiQuotation-splices
2019-06-12 09:17:21 +02:00
Lennart Spitzner
517eda8526
Merge pull request #216 from matt-noonan/master
2019-06-05 22:41:22 +02:00
Lennart Spitzner
f9d70cf546
Refactor CPP slightly, Add test-cases
2019-06-05 21:05:27 +02:00
Matt Noonan
8551600377
Explicitly handle empty HsCase and HsLamCase.
2019-02-04 22:56:46 -05:00
Matt Noonan
6aa537089d
Disable single-line HsApp with argument comments.
2019-02-04 15:10:55 -05:00
Lennart Spitzner
621e00bf3f
Fix indentation (comments) after "if" ( Fixes #167 )
2018-11-14 14:53:08 +01:00
Lennart Spitzner
34735e27ef
Add compat with GHC-8.6 API
2018-11-04 22:14:00 +01:00
Lennart Spitzner
522e40c8ed
Retain empty lines before "where"
...
only applies to local "where"s (not module..where)
2018-11-04 18:13:37 +01:00
Lennart Spitzner
71efa54954
Move tests, minor Refactoring, Add comments
2018-09-23 23:32:05 +02:00
Sergey Vinokurov
9755db1d05
Unify "(#", "#)" under single name, docParenHashL and docParenHashR
2018-09-18 09:14:20 +01:00
Sergey Vinokurov
281d7a2f81
Lay out unboxed tuples with spaces
...
This avoids clashes with names like foo#
2018-09-18 09:07:13 +01:00
Evan Rutledge Borden
92a1d89983
Consolidate record expression layouter
...
Both record construction and record layouting have very similar
constructions. These each had their own layouter with slightly different
variations. Variations here lead to subtley different bugs in layout for
nearly identicle syntactic forms.
The record update logic is more advanced and respects `IndentPolicyLeft`.
Instead of keeping these layouters distinct we can consolidate
construction logic into the update logic. This results in a smaller
volume of code and more uniform layouting of syntax for these simlilar
forms.
Record constructors with fields and wildcards are not included in this
consolidation. A TODO has been left to handle this consolidation later.
2018-09-16 15:47:04 -04:00
Lennart Spitzner
4497fa927f
Add a comment about one superfluous docSetParSpacing
2018-07-06 22:57:33 +02:00
Lennart Spitzner
3c5670d5cd
Fix layouting for OpApps with comments (fixes 159)
2018-07-05 21:31:28 +02:00
Lennart Spitzner
bdee27cb59
Add spaces around record braces (single-line) ( fixes #126 )
2018-05-25 17:57:54 +02:00
Lennart Spitzner
f75127b3a5
Make non-bottom-spacing affect sameline, too ( fixes #144 )
2018-05-16 21:19:36 +02:00
Lennart Spitzner
e91bb6aec9
Clean up IndentPolicyMultiple
2018-05-01 23:19:44 +02:00
Bryan Richter
9ab17cc899
Implement IndentPolicyMultiple
2018-05-01 22:07:05 +02:00
Lennart Spitzner
10e1c19788
Add support for ghc-8.4
2018-04-17 17:50:41 +02:00
Lennart Spitzner
213e82b476
Fix if-then-else paragraph layouting
2018-04-17 06:19:13 +02:00
Sergey Vinokurov
631d9e181d
Replace 'fmap f $' with 'f <$>'
2018-04-02 22:44:49 +01:00
Sergey Vinokurov
545eff9e4f
Remove redundant parens
2018-04-02 22:42:06 +01:00
Sergey Vinokurov
226da07815
Improve vertical alignment
2018-04-02 22:41:15 +01:00
Sergey Vinokurov
0dad5051df
Remove redundant '$'s
2018-04-02 22:41:14 +01:00
Sergey Vinokurov
2ed9a13fdb
Replace 'docAltFilter' with 'runFilteredAlternative'
2018-04-02 21:25:44 +01:00
Lennart Spitzner
0845142727
Fix let-in comment placement bug ( fixes #110 )
2018-03-23 17:34:36 +01:00
Lennart Spitzner
bdd3b155f3
Fix HsPar comment placement bug (see #111 )
2018-03-23 17:11:39 +01:00