Mark Karpov
a63ded8397
Simplify the definition of ‘optParserInfo’
2020-12-11 22:06:38 +01:00
Mark Karpov
9cad22a2fe
Mention the ormolu-action in the readme
2020-11-15 22:14:25 +01:00
Mark Karpov
7714b5220e
Version bump (0.1.4.1)
2020-11-15 20:51:22 +01:00
Mark Karpov
ff9d64db24
Add ‘--color’ for controlling how diffs are printed
...
Also refactor the printing code and standardize how error messages are
output.
2020-11-15 20:50:38 +01:00
Artyom Kazak
703069d5ed
Fix issue links in the changelog
2020-11-15 14:26:48 +01:00
Mark Karpov
84b6a60aec
Version bump (0.1.4.0)
2020-11-14 17:07:49 +01:00
Mark Karpov
8dc40b557d
Misc edits in the readme
2020-11-14 17:07:01 +01:00
Mark Karpov
4d85d706ee
Add table of contents to the readme, rearrange sections
2020-11-14 16:57:51 +01:00
Mark Karpov
90a894e19f
Add explanations for the exit codes to the readme
2020-11-14 16:51:34 +01:00
Mark Karpov
93bef509ca
Display diffs in the checking mode
...
Also improve the way the diffs are printed.
2020-11-14 16:44:16 +01:00
Mark Karpov
286afb7ed6
Avoid inserting a redundant space in front of ticked types
...
In certain cases spaces in this position are unnecessary. Here we try to
make the algorithm smarter so that it doesn't always insert spaces.
2020-11-11 14:33:23 +01:00
Greg Pfeil
288e1cc039
Add support for monad comprehensions
2020-11-11 00:57:32 +01:00
Mark Karpov
a28f7b8756
Version bump (0.1.3.1)
2020-11-01 14:17:58 +01:00
Mark Martynov
64735598c7
Fix multiline record dot updates with the record dot plugin
2020-11-01 14:17:15 +01:00
Mark Karpov
f896262aee
Update nix pin, test with GHC 8.10.2
2020-10-12 22:09:05 +02:00
Felix Yan
5a5a23459c
Allow path 0.8
...
Builds fine and all tests pass here.
2020-10-08 22:55:55 +02:00
Mark Karpov
5f7eb9df93
Fix a typo in the changelog
2020-09-21 23:04:25 +02:00
Mark Karpov
3f6b60a377
Version bump (0.1.3.0)
2020-09-21 23:00:00 +02:00
Mark Karpov
c883856849
Make single-line explicit bidirectional pattern synonyms idempotent
2020-09-21 22:45:36 +02:00
Mark Karpov
a38b0096b9
Guarantee a space before ticked promoted types
2020-09-21 22:27:32 +02:00
tomjaguarpaw
6ced0eba7b
Clarify enabling/disabling
2020-09-17 12:52:38 +02:00
tomjaguarpaw
139df241fe
Fix grammar
2020-09-17 12:05:25 +02:00
amesgen
dec158c58b
add workflow for release binaries
...
see e.g. https://stackoverflow.com/a/61066906 for why `published` is
used as the release trigger
2020-09-06 20:38:33 +02:00
Samir Talwar
e95ec9b83b
Avoid modifying correctly-formatted files
...
Currently, when running with `--mode=inplace`, Ormolu always overwrites the
files, even when nothing has changed, updating the modified timestamp of the
file. This encourages Stack to rebuild everything when only one file has
changed.
A quick check to see if the file needs rewriting solves this problem.
I would prefer the API allowed me to only read the file once, but as the
`--mode=check` logic also reads the file twice, I decided this wasn't the
biggest sin for now.
2020-09-06 20:37:55 +02:00
Jens Petersen
6a053acb10
readme: fix typo of "accommodate"
...
[skip ci]
2020-09-04 10:26:20 +02:00
Mark Karpov
54d36fcc2c
Update nix pin, test with GHC 8.8.4
2020-08-23 11:57:50 +02:00
zimbatm
0b92af2a7f
nix: allow to pass the system attribute
...
This allows to build ormolu for another system as the machine's,
combined with Nix remote builders. It is also useful in a context of a
pure evaluation (like Flakes).
2020-08-21 14:51:37 +02:00
Mark Karpov
d8c3e55313
Allow ‘optparse-applicative-0.16’
2020-08-15 11:51:14 +02:00
Mark Karpov
abdfc9a9ff
Allow ‘dlist-1.0’
2020-07-20 11:51:59 +02:00
Mark Karpov
913a927f39
Tweak the readme a bit, mention Arch Linux
2020-06-29 17:36:24 +02:00
Mark Karpov
bbcb812031
Version bump (0.1.2.0)
2020-06-26 14:06:43 +02:00
Mark Karpov
68c3147f5e
Improve grouping of top-level type signatures
2020-06-26 14:04:47 +02:00
Mark Karpov
e5bbfddfa3
Add ‘-i’ as a shortcut for ‘--mode inplace’
2020-06-26 10:58:38 +02:00
Mark Karpov
e29dd2b1c7
Fix the bug when comments in different styles get glued together
2020-06-24 17:10:54 +02:00
Mark Karpov
c97ba55762
Change comment style in the readme
...
[skip ci]
2020-06-23 11:56:43 +02:00
Mark Karpov
5043f16341
Version bump (0.1.1.0)
2020-06-23 11:42:57 +02:00
Mark Karpov
ca83f15869
Implement merging on imports
2020-06-22 16:31:26 +02:00
Mark Karpov
03e6c70a78
Mention ‘stack install’ in the readme
2020-06-21 14:54:59 +02:00
Mark Karpov
c261356bc4
Recommend lts-16.0 in the readme
2020-06-21 10:45:18 +02:00
Mark Karpov
be1eac66c3
Implement merging of the items in import sections
2020-06-19 17:39:23 +02:00
Mark Karpov
e09fcc0316
Fix the bug related to de-association of pragma comments
2020-06-18 13:59:04 +02:00
Mark Karpov
3fc444a70b
Fixed the bug in the de-duplicating algorithm for import lists
2020-06-17 16:50:32 +02:00
Mark Karpov
35f4fb3932
Deal with non-zero indentation in region formatting
...
Improved region formatting so that indented fragments can also be processed
correctly.
2020-06-16 14:20:52 +02:00
Luke Worth
c982ba9284
Fix build errors with nix on macOS
2020-06-15 23:38:59 +02:00
Mark Karpov
cc337bda18
Prevent type applications from gluing to TH splices that follow them
2020-06-15 12:12:23 +02:00
Mark Karpov
a877785709
Preserve blank lines in ‘let’ and ‘where’ bindings
2020-06-15 10:56:03 +02:00
Mark Karpov
033bb16032
Refactor printing of tuples and tuple sections
2020-06-12 11:45:17 +02:00
Mark Karpov
d5a5bf66c0
Fix rendering of function arguments in multiline layout
2020-06-10 15:14:46 +02:00
Mark Karpov
2efc5d37f9
Format linked lists with colon as line terminator
...
This adds support for a formatting style described here:
<https://wiki.haskell.org/List_notation >
2020-06-10 14:31:07 +02:00
Mark Karpov
6dfd6f088e
Introduce the ‘inciIf’ combinator
2020-06-08 12:01:22 +02:00