Something went wrong while setting issue due date.
Auto-import a function during code completion
That would be superb feature:
- one types:
whe
+ctl+space
- completion window shows (among others:
Control.Monad when :: Applicative f => Bool -> f () -> f ()
- the function is not imported, so we have now 3 options:
import Control.Monad
-
import Control.Monad (when)
(or there is nowhen
among other functions in that import, so it would just add to it import qualified Control.Monad as …
That would match with the import feature known from, e.g. Java IDEs like NetBeans, where developer is not only supported with imports, but also can choose what kind of import they want.