ndmitchell / ndmitchell/hlint

hints for "new" GHC versions

Open
#225 1 comment 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

You often know the lower bound on the GHC versions you support. when older GHCs are excluded new hints become possible.

For example: on GHC 7.10 you no longer need {-# LANGUAGE DeriveDataTypeable #-} and deriving Typeable and hlint could suggest to remove these. Another possible 7.10 hint is (Functor m, Monad m) ==> Monad m.

Can we add hints like these as opt-ins?

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

No files, tests, or entry points are named. Start by reviewing how HLint currently defines opt-in hints and handles supported GHC versions, then compare that with the two examples in the issue. Done means users can opt into version-specific hints, including the Typeable cleanup and the redundant Functor/Monad constraint suggestion.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.