Skip to content

Conversation

@jvoigtlaender
Copy link
Contributor

Suggested various renamings of hints, in ways I would consider more useful/consistent in communicating with students in particular.

The changes are distributed over several smaller commits "grouping" similar suggestions, and with brief justifications in the commit messages. To enable cherry-picking of individual suggestions/commits if need be.

- for example, `uncurry (curry f) -> f` mentioned only redundancy of uncurry

- and `pure x *> y -> y` mentioned redundancy of pure, while `x <* pure y -> x` mentions redundancy of <*
- in accordance with `map f (map g x) -> map (f . g) x` being named "Use map once"
- e.g., in `maybe False (x ==) -> (Just x ==)` it seems more useful to mention disappearence of maybe instead of appearance of Just
- e.g., in `any f (concat x) -> any (any f) x` the default name is "Use any" which is strange since any is already used before applying the hint as well
- because corresponding hints for flip/flip, not/not, negate/negate are also not called "Avoid flip" etc. but rather "Redundant flip" ...
@ndmitchell ndmitchell merged commit 5ea729b into ndmitchell:master Aug 26, 2024
ndmitchell added a commit that referenced this pull request Aug 26, 2024
Summary:

Test Plan:
@ndmitchell
Copy link
Owner

Thanks - they all look improvements to me. Great to see the incremental improvements.

@jvoigtlaender jvoigtlaender deleted the naming-of-hints branch August 26, 2024 14:54
cgohla pushed a commit to cgohla/hlint that referenced this pull request Jun 8, 2025
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

Successfully merging this pull request may close these issues.

2 participants