[haskeline] #109: Completion with choice modifiers

haskeline haskeline at projects.haskell.org
Tue Aug 10 12:10:26 EDT 2010


#109: Completion with choice modifiers
------------------------+---------------------------------------------------
Reporter:  boris        |       Owner:  boris     
    Type:  enhancement  |      Status:  new       
Priority:  major        |   Milestone:            
 Version:               |    Keywords:  completion
------------------------+---------------------------------------------------
 Currently function completeWord receives a function to produce a list of
 possible completions and passes it a word which should be completed. The
 function does not know about other user input.

 For example, if user entered ":m - Data.Lis" and " -" are in list of
 characters which count as whitespaces, the function which suggests
 completion will receive only "Data.Lis".

 I want to pass modifiers(a bad term, perhaps) to the function as well. The
 modifier is a single optional character before word.

 Use case: If function in ghci knows that modules will be removed, it will
 be more convenient if it suggests only modules which have already been
 added to the context.

 I have written the function completeWordWithModifier and based already
 present completeWord on it. The behavior of completeWord was not modified.
 The modified file Completion.hs is attached.

-- 
Ticket URL: <http://trac.haskell.org/haskeline/ticket/109>
haskeline <http://example.org/>
My example project


More information about the Haskeline mailing list