Skip to content

REPL returns list of all imported names when operator completion requested

When querying completions for operators GHCi returns a list containing all imported names rather than suitable completions.

For example, if you simply start GHCi and run :complete repl ">>" command it will give you all names from base and Prelude. Then if you import something else, for example :m +Data.Text, the result of query will contain names from Data.Text also.

In case of projects (cabal repl) things are worst, because returned list contains all names imported project-wise and it could be really huge.

GHCi behaves similarly with following queries:

:complete repl "(>>"
:complete repl "Prelude.>>"
:complete repl "Prelude.(>>"

I only tested this on OS X 10.9, GHC 7.8.4

Edited by Geraldus
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information