Ticket #5343 (closed feature request: fixed)

Opened 22 months ago

Last modified 15 months ago

ghci should do an automatic ":r" after ":e"

Reported by: lerkok Owned by: igloo
Priority: high Milestone: 7.4.2
Component: Compiler Version: 7.0.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

A reload (:r) is almost always what one does after an edit (:e). Arguably ghci should just do the :r after an :e automatically, as I can't imagine why someone would edit a file but not want to load it back into ghci.

If memory serves this is how hugs used to work.

Attachments

5343.patch Download (1.5 KB) - added by pcapriotti 15 months ago.
Reload module after invoking editor

Change History

Changed 19 months ago by igloo

  • owner set to igloo
  • priority changed from normal to high
  • milestone set to 7.4.1

Makes sense to me. Should be easy, so let's do it for 7.4.1.

Changed 18 months ago by igloo

  • milestone changed from 7.4.1 to 7.6.1

punting

Changed 15 months ago by pcapriotti

Reload module after invoking editor

Changed 15 months ago by pcapriotti

  • status changed from new to patch

Attached patch.

Changed 15 months ago by igloo@…

commit e212079dce3b86df4124d4dd819640f85f479a71

Author: Ian Lynagh <igloo@earth.li>
Date:   Sun Mar 11 17:52:48 2012 +0000

    In ghci, reload after :e. Patch from Paolo Capriotti. Fixes #5343

 ghc/InteractiveUI.hs |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

Changed 15 months ago by igloo

  • status changed from patch to merge
  • difficulty set to Unknown

Patch applied. We could merge this.

Changed 15 months ago by pcapriotti

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

Merged as 21de02bc1bf2017e6214b0c6ee6f4f4d15fe9314.

Changed 15 months ago by pcapriotti

  • milestone changed from 7.6.1 to 7.4.2
Note: See TracTickets for help on using tickets.