Further compileToCore improvements
authorTim Chevalier <chevalier@alum.wellesley.edu>
Fri, 29 Jun 2007 01:48:31 +0000 (01:48 +0000)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Fri, 29 Jun 2007 01:48:31 +0000 (01:48 +0000)
commit78f4da288f8a189c739766a3107fa80073800ba7
treeed542daf0283bf90e72646ce63868b62ee92412b
parent4975f4a6222211028c8252782fea090e0a4e21a7
Further compileToCore improvements

Per suggestions from Simon M:

* Changed GHC.checkModule so that it doesn't call depanal.
* Changed GHC.checkModule to optionally return Core bindings
as a component of the CheckedModule that it returns (and
resulting changes to HscMain.hscFileCheck).
* As a result, simplified GHC.compileToCore and changed it
to load the given file so that the caller doesn't have to.
compiler/ghci/InteractiveUI.hs
compiler/main/GHC.hs
compiler/main/HscMain.lhs