Open
Description
The way Scope.hs behaves is fairly erratic. For example:
-- (correctly) suggests mapM
import qualified Control.Monad
x = flip Control.Monad.forM
-- no hint
-- Should suggest: Control.Monad.mapM or Prelude.mapM
import qualified Control.Monad
import qualified Prelude
x = flip Control.Monad.forM
-- suggests mapM
-- Should suggest: Control.Monad.mapM or Prelude.mapM
import qualified Control.Monad
import qualified Prelude
import Data.Int
x = flip Control.Monad.forM
I guess a name should be assumed, if there's no other source of information, to come from Prelude. With this assumption, in the second case it should be able to suggest Prelude.mapM
, and in the third case it should know that Data.Int
is irrelevant.