Add parseExpr and compileParsedExpr and use them in GHC API and GHCi

Authored by watashi on Jun 10 2015, 9:54 PM.



This commit brings following changes and fixes:

  • Implement parseExpr and compileParsedExpr;
  • Fix compileExpr and dynCompilerExpr, which returned () for empty expr;
  • Fix :def and :cmd, which didn't work if IO or String is not in scope;
  • Use GHCiMonad instead IO in :def and :cmd;
  • Clean PrelInfo: delete dead comment and duplicate entries, add assertion.

See new tests for more details.

Test Plan


Diff Detail

rGHC Glasgow Haskell Compiler
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
watashi updated this revision to Diff 3191.Jun 10 2015, 9:54 PM
watashi retitled this revision from to Add parseExpr and compileParsedExpr and use them in GHC API and GHCi.
watashi updated this object.
watashi edited the test plan for this revision. (Show Details)
watashi added reviewers: simonmar, austin, dterei.
watashi updated the Trac tickets for this revision.
watashi updated this object.Jun 10 2015, 10:01 PM
simonmar accepted this revision.Jun 12 2015, 7:13 AM
simonmar edited edge metadata.
This revision is now accepted and ready to land.Jun 12 2015, 7:13 AM
This revision was automatically updated to reflect the committed changes.

It looks like arc land changed the author to me, sorry about that.