apply-refact icon indicating copy to clipboard operation
apply-refact copied to clipboard

extra newlines at end of file

Open jgm opened this issue 8 years ago • 0 comments

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.

jgm avatar Jun 02 '17 13:06 jgm