-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Add hlint rule, foldr (:) [] β toList #451
Conversation
This looks fine, but can we exclude the commit that does reformatting and quotes? |
I realize I don't understand the purpose of this HLint file. I thought it would be for linting relude itself, but it sounds like you are using it in your own projects. Is that right? Is that common practice? |
391c75a
to
8c57725
Compare
Sure. Rebased.
Yep; it's common enough that I'd actually inherited a codebase where that's been done. When using relude, it makes sense to adopt its hlint rule file too β as it provides good guidance with all those |
I should also note, the YAML version of the rule file is a generated output from Dhall source. So those reformatting changes were a byproduct of following the documented process in README: Lines 764 to 791 in 49f415c
They appear because of upstream fixes in Dhall, and relude's |
Yes, understood. But it looks like either those instructions haven't been followed by others, or the version of dhall you're using is a later one, and it's doing something different. Currently I don't feel authorized to address that issue so I'd prefer we just do the simple, noise-free thing. Thanks for this contribution! |
IIRC this was indeed the case... Anyhow, agree to keep it the simple way, thanks for merging π |
Hi @vrom911 π Long-time fan of Kowainik, here's a first contribution.
I was writing something with Relude, and had a sudden brainfart failing to remember how to say
toList
πInstead I wrote
foldr (:) []
β expecting Relude's HLint ruleset to remind me a less clumsy wording β but alas, it didn't say anything! That I was shocked, says something about the quality of kowainik stuff πChecklist
hlint.dhall
accordingly to my changes (add new rules for the new imports, remove old ones, when they are outdated, etc.)..hlint.yaml
file (see this instructions).β π€ Prolly not worth it?..