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

Trailing whitespace in generated cabal file #2218

Closed
danielcompton opened this issue Nov 13, 2014 · 4 comments
Closed

Trailing whitespace in generated cabal file #2218

danielcompton opened this issue Nov 13, 2014 · 4 comments

Comments

@danielcompton
Copy link

When creating a new cabal file with cabal init, there is trailing whitespace created on lines that are commented out. These should be trimmed before the file is created.

screenshot of iterm 14-11-14 8 03 50 am

@23Skidoo
Copy link
Member

I looked into this, and it seems to be caused by the pretty-printing library.

/cc @byorgey

@mpickering
Copy link
Collaborator

Would also like to see this fixed, how difficult would it be for a cabal newbie to take on?

@23Skidoo
Copy link
Member

@mpickering cabal init is a pretty self-contained part of cabal-install. Look at cabal-install/Distribution/Client/Init.hs. The problem is caused by the pretty-printing library, though, so maybe the issue can be fixed by switching to e.g. pretty-compact.

@ttuegel
Copy link
Member

ttuegel commented Apr 24, 2015

This seems to be a duplicate of #1966.

@ttuegel ttuegel closed this as completed Apr 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants