1
1
mirror of https://github.com/tweag/ormolu.git synced 2024-10-26 15:35:11 +03:00
Commit Graph

543 Commits

Author SHA1 Message Date
Thomas BAGREL
b889919794 Implement support for Backpack 2021-10-26 12:41:44 +02:00
Thomas BAGREL
c222964d48 Indent post-guard expression one level more 2021-10-21 18:10:42 +02:00
amesgen
753a73c629 Store raw lines in an array for faster indexing 2021-10-21 11:23:53 +02:00
Mark Karpov
048c55c1be Check Ormolu by running it on Brittany
Brittany cannot format itself, but we can format it with Ormolu. It is a
good idea to add it to our tests.
2021-10-20 16:01:57 +02:00
Mark Karpov
7d4e47b4ed Force a space after -- in line comments 2021-10-19 14:00:32 +02:00
amesgen
4dcf8149f4 Workaround for macOS 11 issues 2021-10-18 12:19:13 +02:00
Mark Karpov
a12da788ad
Use macOS-10.15 for release generation for MacOS
Release generation fails on MacOS 11 due to #804.
2021-10-18 11:39:49 +02:00
Brandon Chinn
5548d632ae Control regeneration of test examples via an env variable 2021-10-16 12:34:25 +02:00
Mark Karpov
560e2d309b
Version bump (0.3.1.0) 2021-10-14 20:22:32 +02:00
amesgen
ca9ae9d291 Semi-preserve invalid Haddock comments
Invalid Haddock comments are no longer silently deleted, but rather
converted into regular comments.
2021-10-14 20:14:07 +02:00
Mark Karpov
71cf4fdc85
Update the table of exit codes
Now the check mode works for input from stdin.
2021-10-12 15:12:28 +02:00
Robert Vollmert
dc04bd7cbb Point at release page for installation instructions 2021-10-12 14:52:08 +02:00
Mark Karpov
e94d623360
Changelog: a formatting whim (issue 634) 2021-10-05 18:30:43 +02:00
Thomas BAGREL
714b98e7f2 Make formatting of multiline guards more diff-friendly
Now guards are printed on a new line if at least one guard is multiline or
if all guards together occupy more than one line. The body of each guard is
also indented one level deeper in that case.
2021-10-05 18:29:17 +02:00
Mark Karpov
a320d99583 Allow check mode when working with stdin input 2021-09-30 10:58:46 +02:00
Mark Karpov
c7ede903a0
Fix an unfortunate typo in the design document 2021-09-28 17:30:31 +02:00
amesgen
dfcbf90b2b Minimize binary sizes 2021-09-27 13:34:27 +02:00
amesgen
1187a81f21 Mention core.autocrlf != false pitfall 2021-09-24 17:51:21 +02:00
Mark Karpov
d14132ecd3
Version bump (0.3.0.1) 2021-09-24 16:00:11 +02:00
amesgen
cc6ebf6e2b Build self-contained macOS binary
Also add a basic test that the binaries actually work
2021-09-24 15:43:33 +02:00
amesgen
e38a7cd5a4 Preserve braces in the left hand side of : 2021-09-23 15:59:25 +02:00
amesgen
2967133753 Only handle CPP if CPP is actually enabled 2021-09-23 15:48:54 +02:00
amesgen
0bb9363e61 Improve handling of .cabal files
See the changelog for details.
2021-09-23 15:41:42 +02:00
amesgen
4fb3b3b373
Add stack.yaml 2021-09-15 14:26:56 +02:00
amesgen
6623031db5 Mention new intentional formatting failures
Closes #774.
2021-09-14 18:06:11 +02:00
Mark Karpov
06b767c8b7
Version bump (0.3.0.0) 2021-09-14 11:10:02 +02:00
Mark Karpov
a1773e1ccb
Update the description of magic comments in the readme
The logic has changed a little.
2021-09-14 11:06:58 +02:00
Mark Karpov
db5b92a932
Update the building instructions 2021-09-14 11:05:04 +02:00
amesgen
897e6736ec Improve handling of disabled regions
Co-authored-by: kukimik <kukimik@poczta.onet.pl>
2021-09-13 22:22:55 +02:00
Mark Karpov
427aa7191c
Mention adding IOHK Hydra binary cache before building 2021-09-13 12:17:02 +02:00
amesgen
2678578967 Bump GHC to 8.10.7 2021-09-10 16:27:46 +02:00
amesgen
46a3142fce Omit braces on repeated application of do blocks 2021-08-25 10:29:54 +02:00
amesgen
776fb767ea Render empty case expressions with braces 2021-08-23 15:50:33 +02:00
amesgen
e1df99ae03 Release binaries: store targets of symlinks 2021-08-19 12:02:53 +02:00
amesgen
e0e961e39f Include git info in executable 2021-08-18 14:29:13 +02:00
Mark Karpov
09f45d87eb
Prevent nix-build from failing when stack.yaml exists 2021-08-18 11:56:32 +02:00
Mark Karpov
5e29428ccf
Update the building instructions in the readme 2021-08-16 21:12:01 +02:00
amesgen
c1d8a8083c Switch to haskell.nix 2021-08-16 20:53:12 +02:00
Mark Karpov
27f3f8e046
Keep FILE arguments at the end of the CLI help text 2021-08-14 16:27:44 +02:00
Mark Karpov
80638316eb
Clarify the meaning of --stdin-input-file in the readme 2021-08-13 15:34:09 +02:00
Mark Karpov
6a190d5c9e
Fix a link in the readme 2021-08-13 15:31:35 +02:00
amesgen
59fced3058 Add option to respect default-extensions from .cabal files 2021-08-12 18:22:21 +02:00
amesgen
3f52afa1d3 Read and write text files using UTF8 and ignoring native line ending 2021-08-11 14:42:21 +02:00
amesgen
011f0dad79 Ormolize hasura/graphql-engine 2021-08-10 17:32:14 +02:00
amesgen
035360e80d Format do commands like do blocks in expression contexts 2021-08-10 17:17:08 +02:00
amesgen
c3f8882c15 Format infix command formations like usual operators 2021-08-10 12:03:17 +02:00
amesgen
27f9ecbf2c Format data declarations with multiline kind signatures correctly 2021-08-09 22:43:23 +02:00
amesgen
5210f1058c Minor changelog fixes for 0.2.0.0 2021-08-08 13:01:16 +02:00
Felix Yan
4055c330ca Correct some typos in DESIGN.md 2021-08-07 19:59:22 +02:00
Mark Karpov
f94a3c71b4
Version bump (0.2.0.0) 2021-08-07 18:11:08 +02:00