Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[explicit-imports-plugin] sort imported symbols

オープン
#4,875 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #4888 @vidit-od による — マージされずにクローズ

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
haskell
領域
devtools

調査の方向性

まず hls-explicit-imports-plugin の実装を見つけ、テキスト範囲の使用を含め、現在どのように明示的なインポートの順序を決定しているかを読み取ります。その動作を要求されている辞書順と比較し、dropPrefix、nubSort、singleton、splitOn のようなインポートされたシンボルがアルファベット順に出力される場合に必要となる作業を検討してください。

索引モデルが issue の本文から書いたものです。

説明

type: enhancement

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

It seems as of HLS 2.13 the hls-explicit-imports-plugin does not order the explicit imports for a module lexically.
(Not sure how they are getting ordered, perhaps just by usage order?)

eg It suggested:

import Data.List.Extra ( singleton, dropPrefix, nubSort, splitOn )

instead of

import Data.List.Extra (dropPrefix, nubSort, singleton, splitOn)

Describe the solution you'd like

It would be nice to sort the explicitly imported functions, etc

Additional context

I glanced at the code, but it was a bit above my head: perhaps I would need to understand text ranges etc

主要言語
Haskell
スター
3k
フォーク
470
平均マージ
1日 1時間
マージ済み PR(30日)
19

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

haskell/haskell-language-server のほかの issue

haskell/haskell-language-server の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。