Refactoring, and fix a couple of SafeHaskell-related things
authorSimon Marlow <marlowsd@gmail.com>
Tue, 14 Feb 2012 10:24:34 +0000 (10:24 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 14 Feb 2012 11:38:52 +0000 (11:38 +0000)
commit73575632949f4e867b80bc68d5e19206822744b4
tree47a43b4849f77d55fec81a8c2f5ca8079c19852e
parent4a0973bb25f8d328f1a41d43d9f45c374178113c
Refactoring, and fix a couple of SafeHaskell-related things

When -XSafe is on:
  - ":load M" should default to adding M to the context (rather than *M).
  - "import M" should do the appropriate trust check

Also various refactoring and comments added, hopefully the code is
easier to read now.
ghc/InteractiveUI.hs