1
1
mirror of https://github.com/tweag/ormolu.git synced 2024-10-06 09:57:29 +03:00
Commit Graph

604 Commits

Author SHA1 Message Date
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
amesgen
63a2560d4c Modernize cabal file
also use extra-source-files instead of data-files, as we don't need
those files at runtime
2021-08-07 17:13:52 +02:00
Robert Vollmert
3fc9ff3415 Indent closing arrow-banana in do block 2021-08-07 16:39:16 +02:00
amesgen
bec43c1098 Detect missing trailing blank lines with --mode check 2021-08-07 16:28:05 +02:00
Robert Vollmert
f1d701f911 Support left-to-right arrow application
Compare https://hackage.haskell.org/package/ghc-8.10.2/docs/src/GHC.Hs.Expr.html#HsCmdArrApp
2021-08-07 16:20:06 +02:00
amesgen
7ac125143b Preserve minus signs in literal patterns in all cases 2021-08-07 16:14:36 +02:00
amesgen
e7e1921bd0 Remove spaces after negation via - where possible 2021-08-07 16:14:36 +02:00
amesgen
92aec5077f Allow CLI GHC options to be overriden by file local options 2021-08-07 16:08:07 +02:00
amesgen
c906ee7c02 Fix formatting of applied multi line constructs in do blocks 2021-08-07 15:52:53 +02:00
amesgen
50da97948a Surround code in brackets with spaces if it contains a * ~ Type 2021-08-07 15:39:25 +02:00
amesgen
d272a99c03 Fix formatting of infix arrow command formations 2021-08-07 15:31:17 +02:00
amesgen
ebcfe1c8a9 Support TypeApplications in data/type family instances 2021-08-07 15:12:14 +02:00
amesgen
6344ffd299 Preserve CTYPE pragmas in data declarations 2021-08-07 15:01:17 +02:00
amesgen
f55ab70bff Switch to ghc-lib-parser-9.0.xxx and support GHC 8.8, 8.10, 9.0 2021-08-07 14:28:12 +02:00
Robert Vollmert
58108e0dcd Implement HsCmdApp (fixes #716) 2021-07-05 11:19:07 +02:00
Joe Hermaszewski
9861707130 Simplify p_conDecl GADT rendering by using p_hsType
This can be upstreamed to Ormolu
2021-06-17 21:00:24 +02:00
Joe Hermaszewski
20856eec26 Add two missing cases to hasDocStrings 2021-06-17 21:00:24 +02:00
Mark Karpov
3adef733a9
Update the changelog (mention the issue 701) 2021-05-13 19:47:54 +02:00
David Martschenko
7f79473e64 Fix rendering of regular record updates with RDP on 2021-05-13 19:46:18 +02:00
Mark Karpov
50d0e28bfd Do not enable TH by default 2021-04-17 19:23:39 +02:00
Mark Karpov
77debd145f
Mention the git ls-files trick in the readme 2021-04-12 22:27:33 +02:00
amesgen
34bdf62429
Group StandaloneKindSignatures with type synonyms 2021-02-02 21:15:27 +01:00
Mark Karpov
4e01690e05 Test with GHC 8.10.3 2021-01-04 22:43:38 +01:00
amesgen
dc14e944b3 update CI for release binaries 2020-12-13 17:17:49 +01:00
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