[GHC] #10576: REPL returns list of all imported names when operator completion requested
GHC
ghc-devs at haskell.org
Fri Jun 26 17:03:28 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):
My little investigation lead me to `completeQuotedWord` function, but I
can't follow any further now because I can't find where it comes from:
`completeCmd` [1] ->
-> [2]
-> `ghciCompleteWord` [3]
-> [4]
-> `completeExpression` [5]
{{{
completeExpression = completeQuotedWord (Just '\\') "\"" listFiles
completeIdentifier
}}}
[1]:https://github.com/ghc/ghc/blob/d20031d4c88b256cdae264cb05d9d850e973d956/ghc/InteractiveUI.hs#L2481
[2]:https://github.com/ghc/ghc/blob/d20031d4c88b256cdae264cb05d9d850e973d956/ghc/InteractiveUI.hs#L2484
[3]:https://github.com/ghc/ghc/blob/d20031d4c88b256cdae264cb05d9d850e973d956/ghc/InteractiveUI.hs#L2528
[4]:https://github.com/ghc/ghc/blob/d20031d4c88b256cdae264cb05d9d850e973d956/ghc/InteractiveUI.hs#L2535
[5]:https://github.com/ghc/ghc/blob/d20031d4c88b256cdae264cb05d9d850e973d956/ghc/InteractiveUI.hs#L2639
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10576#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list