
#10576: REPL returns list of all imported names when operator completion requested -------------------------------------+------------------------------------- Reporter: Geraldus | Owner: Geraldus Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.4 Resolution: | Keywords: completions | complete command operator Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Incorrect result | Test Case: ghci/prog017 at runtime | ghci/scripts/T10576a T10576b Blocked By: | Blocking: Related Tickets: #9996 | Differential Rev(s): Phab:D1058 Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * testcase: => ghci/prog017 ghci/scripts/T10576a T10576b Comment: Update. This works: {{{ Prelude> (☀☀) _ _ = () Prelude> x1 ☀<TAB> }}} This doesn't work: {{{ Prelude> (☀☀) _ _ = () Prelude> x1☀<TAB> }}} A space is needed between the variable and the operator for completion to work. To solve this nicely requires adding a function to haskeline, similar to `completeWord`, but which takes a predicate function instead of a list of escape characters. The tests `T10576a` and `T10576b` are marked `expect_broken` for this issue. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10576#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler