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

Eliminate compilation warnings #302

Open
avh4 opened this issue Mar 5, 2017 · 4 comments
Open

Eliminate compilation warnings #302

avh4 opened this issue Mar 5, 2017 · 4 comments

Comments

@avh4
Copy link
Owner

avh4 commented Mar 5, 2017

I'd like to fix all haskell compilation warnings, and then turn on the -Werror flag (to make all warnings act as errors) for compilation.

@avh4 avh4 added this to the 1.0.0 public release milestone Mar 5, 2017
@avh4
Copy link
Owner Author

avh4 commented Mar 19, 2017

Note: There was a bug in stack < 1.4.0, causing ghc-options in the cabal file to not be honored. (commercialhaskell/stack#2289)

@ahstro
Copy link
Contributor

ahstro commented Oct 24, 2017

Would it be okay if I looked into this? I don't have a ton (see close to none) of Haskell experience, but I'm interested to learn, and I'm a sucker for getting rid of warnings.

@avh4
Copy link
Owner Author

avh4 commented Oct 24, 2017

@ahstro sure! The most common warning is that there are local variables that shadow outer scope variables, so coming up with good distinct names will probably be the bulk of the work. One thing to note is that cabal won't rebuild files that haven't changed, so if you've already compiled everything, recompiling will only print out the warnings for files that need to be recompiled.

I'd suggest doing a PR for one file at a time, so there isn't a huge PR.

@ahstro
Copy link
Contributor

ahstro commented Oct 25, 2017

I saw that, I'll do my best trying to figure out good names. Guess that gives me a good reason to read and figure out some of the code, so feels like a good starting point.

Thanks for the tip on Cabal!

ahstro added a commit to ahstro/elm-format that referenced this issue Oct 25, 2017
ahstro added a commit to ahstro/elm-format that referenced this issue Oct 25, 2017
ahstro added a commit to ahstro/elm-format that referenced this issue Oct 25, 2017
ahstro added a commit to ahstro/elm-format that referenced this issue Oct 25, 2017
@avh4 avh4 mentioned this issue Jan 25, 2018
kutyel pushed a commit to kutyel/elm-format that referenced this issue Apr 26, 2022
kutyel pushed a commit to kutyel/elm-format that referenced this issue Apr 26, 2022
kutyel pushed a commit to kutyel/elm-format that referenced this issue Apr 26, 2022
kutyel pushed a commit to kutyel/elm-format that referenced this issue Apr 26, 2022
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

2 participants