ndmitchell / ndmitchell/hlint

Suggest foldable changes

Open
#305 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haskell
Stars
1.6k
Forks
210
PR merge metrics
No merged PRs in 30d

Description

Suggestion from @nilthehuman.

Instead of "Data.Foldable.any id" => Why not Data.Foldable.or ?
Instead of "Data.Foldable.all id" => Why not Data.Foldable.and ?

Very sensible - in fact, I should probably let hlint know that Data.Foldable.all is Data.List.all, so it can apply the hint to all of them.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the existing HLint suggestions for Data.Foldable.any, Data.Foldable.all, Data.List.any, and Data.List.all, then inspect how equivalent suggestions are represented and tested. Done means HLint suggests Data.Foldable.or for Data.Foldable.any id and Data.Foldable.and for Data.Foldable.all id, while covering the related Data.List cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.