kowainik / kowainik/stan

'length' used to compare list size with the constant

Open
#300 0 comments 1 reaction 0 assignees View on GitHub
analysis :alembic: inspection nice to have :nail_care:
Dominant language
Haskell
Stars
597
Forks
53
PR merge metrics
No merged PRs in 30d

Description

Something like this `length xs > 5` can be rewritten to handle infinite lists. This can be a separate inspection, or improved suggestion to the existing Infinite length inspection, if we can support such extensible inspections somehow.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing Infinite length inspection and how inspections are extended. Determine whether comparisons such as `length xs > 5` should use a separate inspection or an extensible version of the existing one. Done means the chosen inspection recognizes constant-size comparisons and handles infinite lists safely.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.