haskell-language-server icon indicating copy to clipboard operation
haskell-language-server copied to clipboard

Error in "refine imports" suggestion

Open andreasabel opened this issue 1 month ago • 0 comments

Image

That suggestion does not look right:

Refine imports to import Agda.Utils.List1 qualified as List2

If I remove the qualified import of List2 the List2.toList is no longer in scope. toList is IsList method from GHC.Exts.
So the suggestion is right somehow that we would not need to import Agda.Utils.List2 if Agda.Utils.List1 already reexports IsList. However, the suggestion still does not make sense, practically.

Unfortunately no self-contained reproducer here either. :-(

andreasabel avatar Nov 30 '25 16:11 andreasabel