Ticket #4249 (closed feature request: fixed)

Opened 3 years ago

Last modified 3 years ago

Remove module from context completion

Reported by: boris Owned by:
Priority: high Milestone: 7.0.1
Component: GHCi Version: 6.13
Keywords: completion module Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I propose to suggest in completion only modules the user already loaded into the context. The completion should look like this

Prelude Data.List> :m -
Data.List  Prelude

instead of this

Prelude Data.List> :m -
Display all 728 possibilities? (y or n)

I have already written a patch, but it requires addition of one function into haskeline library. Actually, this function can be put into ghci, but it fits more naturally in haskeline. I have created a ticket in haskeline trac  http://trac.haskell.org/haskeline/ticket/109

Attachments

completion.patch Download (103.2 KB) - added by boris 3 years ago.
completion.2.patch Download (117.4 KB) - added by boris 3 years ago.
adopted to the new Haskeline

Change History

Changed 3 years ago by boris

Changed 3 years ago by simonpj

Sounds good to me (although I am no expert on this part of GHC). I assume we should wait until you have the patch in haskeline; then you can send us a revised patch for GHC if one is needed.

Thanks for doing it.

Simon

Changed 3 years ago by igloo

  • priority changed from normal to high
  • milestone set to 6.14.1

Haskeline has been patched, but slightly differently, so the patch will need to be adapted slightly.

Should be easy to do, so I've made the ticket high priority so we don't forget.

Changed 3 years ago by boris

adopted to the new Haskeline

Changed 3 years ago by boris

  • status changed from new to patch

Changed 3 years ago by igloo

  • status changed from patch to closed
  • resolution set to fixed

Applied, thanks!

Note: See TracTickets for help on using tickets.