Fix ghci tab completion of duplicate identifiers.
authorShachaf Ben-Kiki <shachaf@gmail.com>
Sun, 13 Jul 2014 20:19:33 +0000 (15:19 -0500)
committerAustin Seipp <austin@well-typed.com>
Sun, 13 Jul 2014 20:19:33 +0000 (15:19 -0500)
commit1d71e96958cb4374b383e2f254b5358386bf835c
tree4627ad8b8c9586fab685235368c30a2d1661c521
parent8af2f702210b359dad1e65fb029ddf934b967edc
Fix ghci tab completion of duplicate identifiers.

Summary:
Currently, if the same identifier is imported via multiple modules, ghci
shows multiple completions for it. Use the nub of the completions
instead so that it only shows up once.

Signed-off-by: Shachaf Ben-Kiki <shachaf@gmail.com>
Test Plan: by hand

Reviewers: simonmar, austin, hvr

Reviewed By: austin, hvr

Subscribers: hvr, simonmar, relrod, carter

Differential Revision: https://phabricator.haskell.org/D58
compiler/utils/Util.lhs
ghc/InteractiveUI.hs