Since someone here mentioned that psc-ide mode (I’m using Emacs) is supposed to add specified imports, I realized it doesn’t seem to be working for me.
Let’s say I want to use ‘traverse’ from Data.Traversable. Let’s say I haven’t yet put “import Data.Traversable” there.
So I start to type “traverse” and it doesn’t offer to auto complete, which I figure is because I hadn’t added the import. So then I erase “traverse” and go to type “import Data.Traverable”. Then I start typing “traverse” again, and after I type “trav” it offers to complete it. So I accept the completion (“traverse”). At that point, psc-ide does some stuff to my imports, in particular putting them in alphabetical order, but it doesn’t add a specification of “traverse”.
I looked over the “customize” settings for psc-ide, and the following are all on:
- Psc Ide Add Import On Completion
- Psc Ide Add Qualification On Completion
and most other options seem to be either irrelevant or have the appropriate setting (say, “on” for most of them).