apply-refact
apply-refact copied to clipboard
extra newlines at end of file
When I use hlint --refactor --refactor-options='-i -s', I find that extra newlines get introduced at the ends of my files.
Though I'm not sure, I suspect the reason is the use of getContents >>= hPutStrLn here:
https://github.com/mpickering/apply-refact/blob/master/src/Main.hs#L151
This will insert one more newline than was contained in the original contents.