mrkkrp
8870acd41f
Replace weird whitespace characters by normal spaces
...
I'm just curios of their origin. If I'm not mistaken they were introduced by
@yumiova.
2019-08-05 21:01:52 +02:00
Basile Henry
09e2a538ef
Add printer for ‘HsSpliceTy’
2019-08-05 19:46:47 +02:00
mrkkrp
c6a6193525
Do not run tests when trying Ormolu on Hackage packages
2019-08-05 15:15:45 +02:00
mrkkrp
f86e01ea3b
Avoid crashing on unboxed string literals
2019-08-04 23:27:31 +02:00
Mauricio Fierro
bdb22b96ac
Fix record pattern synonyms
2019-08-04 22:41:48 +02:00
gabriele.lana
be53b3e504
Format unboxed sum pattern
2019-08-04 21:47:52 +02:00
mrkkrp
54749b889a
A couple of minor corrections to the readme
...
[skip ci]
2019-08-04 21:20:30 +02:00
mrkkrp
e344f61d33
Fix some inconsistency in indentation
2019-08-04 16:50:38 +02:00
mrkkrp
85de7ce38c
Add support for the CONLIKE modifier in inlining pragmas
2019-08-04 13:54:08 +02:00
mrkkrp
85d5f78b4b
Change parens style and how separated lists of items are printed
...
Goals:
* Make the set of combinators clearer and smaller.
* Solve a number of issues, such as those about parse failures related to
patterns.
* Solve the bug from #244 .
The idea is very simple, we stop doing this
( foo
, bar
)
and start doing this
( foo,
bar
)
* We switch to trailing commas which solves the indentation issues for
patterns automatically.
* The new general ‘sep’ combinator finally is clear enough, and all the old
zoo of ‘velt’ and ‘velt'’ and ‘sepWith’, etc. which was confusing and
overlapping goes away.
2019-08-04 13:32:06 +02:00
Mitchell Rosen
180df38a71
Fix mixing names with double dot in export lists
2019-07-29 23:14:31 +02:00
Mitchell Rosen
81b291929e
Don't separate pattern signature from pattern ( fixes #192 )
2019-07-29 22:28:28 +02:00
mrkkrp
004c8d0256
Adjust when we put parentheses around TH-quoted names
2019-07-29 22:27:06 +02:00
mrkkrp
d61b9101ca
Always put parens around kind signatures
2019-07-21 22:43:55 +02:00
sphaso
116a5a81df
Insert space before promoted types where necessary
2019-07-21 21:34:45 +02:00
mrkkrp
46a1c221ab
Also add parentheses around TH-quoted qualified operators
2019-07-21 12:36:30 +02:00
mrkkrp
560c498688
Handle inline comments before let correctly
2019-07-21 12:25:39 +02:00
mrkkrp
de1b33788d
Fix parentheses around TH-quoted operators
2019-07-21 12:14:32 +02:00
mrkkrp
ab4885ff0f
Preserve empty where clause
2019-07-21 00:30:24 +02:00
sphaso
174a0847d4
Keep comma on multiple GADT declaration
2019-07-20 22:31:54 +02:00
gabriele.lana
8d52d87d72
Preserve operators promotion (single quote)
...
Fixes #222
2019-07-20 22:07:47 +02:00
sphaso
0065a9baf6
Add space after minus for ‘NegApp’
2019-07-20 21:53:45 +02:00
waddlaw
68bbc647f7
Always surround the class to derive with parentheses
2019-07-20 21:34:50 +02:00
Daniel Krueger
2cae331d1b
Insert space before double dot of arithmetic sequence
...
This style is arguably ugly, but solves the issue when the type signatures
mess with the double dot. Will do for now.
2019-07-20 20:42:41 +02:00
mrkkrp
63478a0ba4
Drop shebang from the ormolize.sh script
...
This one is likely to incorrect in the context of the build.
2019-07-15 11:41:45 +02:00
mrkkrp
c5b9fa1168
Add an option to tolerate CPP pragmas
2019-07-14 13:14:55 +02:00
mrkkrp
62cbd42ddd
Improve error pretty printing
2019-07-14 13:14:55 +02:00
mrkkrp
78e8dd830a
Make sure we always get both original and formatted files
2019-07-14 13:14:55 +02:00
mrkkrp
7a9aab77b3
Add nix expression for reformatting sources of arbitrary packages
...
See the description in readme.
2019-07-14 13:14:55 +02:00
mrkkrp
a444abc764
Update ‘CONTRIBUTING.md’
2019-07-13 21:51:45 +02:00
mrkkrp
53c3044ffc
Add a note about ‘ApplicativeStmt’
...
[skip ci]
2019-07-13 21:48:44 +02:00
waddlaw
e663070623
An option to display “manual” extensions
2019-07-13 21:42:06 +02:00
mrkkrp
fd5cee6161
Blacklist extensions instead of whitelisting them
2019-07-13 21:16:09 +02:00
Basile Henry
b2f49a7693
Support single line where clauses
2019-07-13 19:57:10 +02:00
Basile Henry
0baa898f30
Add tests for let/where interaction #177
2019-07-13 19:57:10 +02:00
Vladislav Zavialov
fd4fa7f33e
Comma-separated SPECIALIZE types
2019-07-13 19:56:59 +02:00
Vladislav Zavialov
984e4b674f
Keep FunBind strictness
2019-07-13 19:38:46 +02:00
Vladislav Zavialov
63f4d1f4f4
Include source locations in diff report
2019-07-13 19:37:22 +02:00
Vladislav Zavialov
b03f989f36
Bang patterns and splices in lambdas
2019-07-13 17:45:52 +02:00
waddlaw
a7265df09e
Fix printing of backticks around wildcards in operator position
2019-07-12 18:06:21 +02:00
yumiova
9e880c5299
Support transform list comprehensions
2019-07-12 17:49:16 +02:00
yumiova
069ae69a5b
Support data types with infix & multi-line declarations
...
Fix the bug where data types with infix names & names layed out over multiple lines get incorrectly formatted. Specifically, reuse `p_infixDefHelper` to easily take care of this behavior.
2019-07-12 17:19:05 +02:00
PanAeon
c2dd159c9c
Implement rendering of rewrite rule declarations
2019-07-12 17:07:54 +02:00
waddlaw
28c35cc8df
Drop the mention of configuration file from readme
2019-07-08 22:30:10 +02:00
mrkkrp
a2b75213b3
Adjust rendering of kind signatures and implicit parameters
...
Previously there was no space between type variable and ‘::’, which is why I
started digging this in the first place.
2019-07-08 22:22:51 +02:00
mrkkrp
99619d681c
Fix rendering of implicit bidirectional pattern synonyms
...
Previously we forgot to enable the extension, and apparently we were just
defining a function called ‘pattern’.
2019-07-08 21:46:24 +02:00
mrkkrp
3d74f2fb53
Shift ‘in’ in ‘let’ to the right to allow placing it in do blocks
...
It is a bit uncommon to format it like this, but this way it can be placed
without changes in do blocks as well. I think it's the right way go about
that bug.
2019-07-07 14:13:40 +02:00
mrkkrp
01486edadb
Enable some non-conflicting language extensions by default
2019-07-07 13:53:59 +02:00
mrkkrp
c201862f11
Drop ‘yaml’ configuration
2019-07-07 13:53:59 +02:00
mrkkrp
d63eeea3df
Mention name of file even when rendered version fails to parse
...
Without this info it's hard to know which file from a bulk is problematic.
2019-07-07 13:53:27 +02:00