Merge ormolu changes#106
Merge ormolu changes#106brandonchinn178 merged 92 commits intofourmolu:masterfrom brandonchinn178:merge-upstream
Conversation
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).
[skip ci]
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.
see e.g. https://stackoverflow.com/a/61066906 for why `published` is used as the release trigger
Builds fine and all tests pass here.
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.
Also improve the way the diffs are printed.
Also refactor the printing code and standardize how error messages are output.
Seems like a good idea. But I don't care that much either if it isn't trivial to set up - it's easy enough to just avoid merging. |
|
Great stuff. Thanks for doing this. And apologies for forgetting to use GitHub's review feature to bundle up my comments with...
I think we ought to just push ahead. Or we could be waiting a while. We can add a note in the changelog about the regression, and mention that it will be fixed again as soon as GHC 9.2 is out. |
It's pretty trivial.
This will force all commits merging into
Yeah, you're right. |
|
I don't appear to have the permissions to access the repository settings: |
|
@georgefst is this waiting on anything before merge? |
Nope, looks good! |
Thanks! |
Done. |

This merges in ormolu
masteras of today. This gets GHC 9 support, in addition to many other changes (this merges in 4 ormolu releases!)Also adds
DEVELOPER.mdas a starting document for various developer workflows. Currently it has docs for the release process (feel free to edit as needed; i'm not sure how fourmolu was released in the past) and merging upstream ormolu changesAfter-merge checklist
Add issue to re-add regression test when ormolu fixes:91470f2Ormolu completely deletes misplaced Haddock comments tweag/ormolu#474