Opened 5 years ago

Closed 5 years ago

#9994 closed feature request (duplicate)

Provide option to show current module in ghci prompt without listing imported modules.

Reported by: shachaf Owned by:
Priority: normal Milestone:
Component: GHCi Version: 7.8.4
Keywords: Cc: hvr
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: #5850 Differential Rev(s):
Wiki Page:

Description

GHCi allows for %s in the prompt, which is replaced by the currently loaded module followed by all imported modules. However, my .ghci imports about a hundred modules, making the prompt way too long when I use %s. It would be useful to have an option for showing just the current module, and not all the imported modules.

Change History (1)

comment:1 Changed 5 years ago by thomie

Resolution: duplicate
Status: newclosed

I think #5850, and the accompanied patch, will allow you to do what you want. Please reopen this ticket if it does not suit your needs.

Note: See TracTickets for help on using tickets.