Skip to content

Commit 56fd8af

Browse files
qnikstmrkkrpjoaosreis
authored
Version: 0.9.0.0 (#1221)
* Version: 0.9.0.0 This commit keeps all the changes that makes a version exactly equal to the lastest version released on the hackage. However as upstream respository was removed it's not possible to recreate exact commit history. And this commit exists in order to keep historical version for the community and not lose work that was done by Mark. Commit is fully implemented by Mark Karpov, with detailed explanations done in https://web.archive.org/web/20260819093310/https://markkarpov.com/post/ormolu-one-refactor-that-fixed-everything.html Co-authored-by: Mark Karpov <markkarpov92@gmail.com> Co-authored-by: João Santos Reis <joao.reis@tweag.io>
1 parent 586b98c commit 56fd8af

186 files changed

Lines changed: 3525 additions & 2903 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
ghc: [ghc9102, ghc9122, ghc9141]
15+
ghc: [ghc9102, ghc9124, ghc9141]
1616
name: Build and test on ${{ matrix.ghc }}
1717
runs-on: ubuntu-latest
1818
steps:

‎CHANGELOG.md‎

Lines changed: 147 additions & 35 deletions
Large diffs are not rendered by default.

‎CONTRIBUTING.md‎

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
# Contributing
22

3-
Issues (bugs, feature requests or otherwise feedback) may be reported in
4-
[the GitHub issue tracker for this project][issues]. Pull requests are also
3+
Issues (bugs, feature requests, or other feedback) may be reported in [the
4+
GitHub issue tracker for this project][issues]. Pull requests are also
55
welcome.
66

77
When contributing to this repository, please first discuss the change you
88
wish to make via an issue, unless it's entirely trivial (typo fixes, etc.).
99
If there is already an issue that describes the change you have in mind,
10-
comment on it indicating that you're going to work on that. This way we can
11-
avoid the situation when several people work on the same thing.
10+
comment on it to indicate that you're going to work on it. This way we can
11+
avoid situations where several people work on the same thing.
1212

13-
Please make sure that all non-trivial changes are described in commit
13+
Please make sure that all non-trivial changes are described in the commit
1414
messages and PR descriptions.
1515

1616
## Testing
1717

18-
Testing has been taken good care of and now it amounts to just adding
19-
examples under `data/examples`. Each example is a pair of files:
20-
`<example-name>.hs` for input and `<example-name>-out.hs` for corresponding
21-
expected output.
18+
Testing is well taken care of, so it usually amounts to just adding examples
19+
under `data/examples`. Each example is a pair of files: `<example-name>.hs`
20+
for the input and `<example-name>-out.hs` for the corresponding expected
21+
output.
2222

23-
Testing is performed as following:
23+
Testing is performed as follows:
2424

25-
* Given snippet of source code is parsed and pretty-printed.
26-
* The result of printing is parsed back again and the AST is compared to the
27-
AST obtained from the original file. They should match.
28-
* The output of printer is checked against the expected output.
29-
* Idempotence property is verified: formatting already formatted code
25+
* The given snippet of source code is parsed and pretty-printed.
26+
* The result of printing is parsed again, and its AST is compared to the AST
27+
obtained from the original file. The two should match.
28+
* The output of the printer is checked against the expected output.
29+
* The idempotence property is verified: formatting already formatted code
3030
results in exactly the same output.
3131

32-
Examples can be organized in sub-directories, see the existing ones for
32+
Examples can be organized into sub-directories; see the existing ones for
3333
inspiration.
3434

35-
Please note that we try to keep individual files at most 25 lines long
35+
Please note that we try to keep individual files at most 25 lines long,
3636
because otherwise it's hard to figure out what went wrong when a test fails.
3737

3838
To regenerate outputs that have changed, you can set the
3939
`ORMOLU_REGENERATE_EXAMPLES` environment variable before running tests.
4040

4141
## Formatting
4242

43-
- Use `nix run .#format` script to format Ormolu with the current version of
44-
Ormolu.
43+
- Use the `nix run .#format` script to format Ormolu with the current
44+
version of Ormolu.
4545

46-
- Additional formatters are configured via a pre-commit hook which is
47-
automatically installed when entering the Nix shell. You can also run it via
48-
`pre-commit run`/`pre-commit run -a`.
46+
- Additional formatters are configured via a pre-commit hook, which is
47+
installed automatically when you enter the Nix shell. You can also run it
48+
via `pre-commit run` or `pre-commit run -a`.
4949

50-
If Ormolu is not formatted like this, the CI will fail.
50+
If Ormolu is not formatted this way, CI will fail.
5151

5252
[issues]: https://github.com/tweag/ormolu/issues

‎LICENSE.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2018–present Tweag I/O
1+
Copyright © 2018 Tweag I/O, 2026 Mark Karpov
22

33
All rights reserved.
44

@@ -12,7 +12,7 @@ modification, are permitted provided that the following conditions are met:
1212
notice, this list of conditions and the following disclaimer in the
1313
documentation and/or other materials provided with the distribution.
1414

15-
* Neither the name Tweag I/O nor the names of contributors may be used to
15+
* Neither the names Tweag I/O and Mark Karpov nor the names of contributors may be used to
1616
endorse or promote products derived from this software without specific
1717
prior written permission.
1818

0 commit comments

Comments
 (0)