Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra newlines at end of file #27

Open
jgm opened this issue Jun 2, 2017 · 0 comments
Open

extra newlines at end of file #27

jgm opened this issue Jun 2, 2017 · 0 comments

Comments

@jgm
Copy link

jgm commented Jun 2, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant