[GHC] #10576: REPL returns list of all imported names when operator completion requested

GHC ghc-devs at haskell.org
Fri Jun 26 17:09:18 UTC 2015


#10576: REPL returns list of all imported names when operator completion requested
-------------------------------------+-------------------------------------
        Reporter:  Geraldus          |                   Owner:  thomie
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  GHCi              |                 Version:  7.8.4
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |  completions complete command
 Type of failure:  Incorrect result  |  operator
  at runtime                         |            Architecture:
      Blocked By:                    |  Unknown/Multiple
 Related Tickets:  #9996             |               Test Case:
                                     |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by Geraldus):

 > The problem comes from using the default `word_break_chars`

 Oh, so I suppose potential solution is to check if prefix to be completed
 starts with operator symbol, and if the case do not use
 `wrapIdentCompleter` in `completeIdentifier`.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10576#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list