Is there a hint for unqualified imports
Open
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 1.6k
- Forks
- 210
- PR merge metrics
- No merged PRs in 30d
Description
I'd like to prohibit unqualified imports without explicit import list:
import Data.List -- bad
import qualified Data.List as L -- ok
import Data.List (foldl') -- ok
This should be configurable, e.g. to allow some modules to be imported unqualified:
import Prelude hiding (null)
-- or
import Prelude.Compat -- should be configurable to be ok
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is named. Start by locating HLint's import checks and configuration handling, then determine where a configurable hint can distinguish bare unqualified imports from qualified or explicitly listed imports. Done means the hint reports bare imports while honoring configured exceptions such as Prelude.Compat.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100