ormolu/app
Samir Talwar e95ec9b83b Avoid modifying correctly-formatted files
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.
2020-09-06 20:37:55 +02:00
..
Main.hs Avoid modifying correctly-formatted files 2020-09-06 20:37:55 +02:00