haskell / haskell/haskell-language-server

Disable or at least constrain import list suggestions

Open
#3,466 5 comments 0 reactions 0 assignees View on GitHub
component: imports plugin type: enhancement
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
3d 21h
Merged PRs (30d)
13

Description

## Is your enhancement request related to a problem? Please describe.

GitHub isn't letting me attach the image which pretty much shows the problem. See https://imgur.com/55su3Yc.png.
There is no way to disable this or tell it that it's a `Prelude`-like import and it's expected that you get some 50-60 symbols from this module.

## Describe the solution you'd like

Something like the pragmas that allow disabling individual `hlint` warnings.

## Describe alternatives you've considered

I modify my config fairly often and am not interested in micromanaging import lists. Additionally, not everyone wants explicit imports; see for example discussion at https://view.matrix.org/room/!hskonBonfjiIefqLUV:matrix.org/ as of 14:37:43 on 2023-01-25 (I can't find a way to get a link to the log at that time).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Haskell Language Server code that produces import-list suggestions and reviewing existing configuration or pragma handling; the issue names no files or tests. Done means users can disable or constrain these suggestions without micromanaging import lists, with behavior covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.