Retain ic_monad and ic_int_print from external packages after load
ClosedPublic

Authored by watashi on Apr 24 2015, 11:18 PM.

Details

Summary

Retain ic_monad and ic_int_print in InteractiveContext after load
when they are defined in external packages. This is supposed to be
the desired behavior that the interactive-print and setGHCiMonad
will survive after :cd, :add, :load, :reload and :set in GHCi.

Test Plan

Install a interactive-print function and GHCi monad from extenal
pacakge. Try :cd, :load and other commands, make sure that the
interactive-print function and GHCi monad always keep the same.

Diff Detail

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
watashi updated this revision to Diff 2842.Apr 24 2015, 11:18 PM
watashi retitled this revision from to Retain ic_monad and ic_int_print from external packages after load.
watashi updated this object.
watashi edited the test plan for this revision. (Show Details)
watashi added a reviewer: simonmar.
simonmar accepted this revision.May 1 2015, 2:24 AM
simonmar edited edge metadata.
This revision is now accepted and ready to land.May 1 2015, 2:24 AM
This revision was automatically updated to reflect the committed changes.