mirror of
https://github.com/ilyakooo0/ormolu.git
synced 2024-10-05 20:58:18 +03:00
e95ec9b83b
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. |
||
---|---|---|
.. | ||
Main.hs |