patch applied (ghc): Make compileToCore return the module name and
type environment along with bindings
Tim Chevalier
chevalier at alum.wellesley.edu
Sat Oct 27 06:08:16 EDT 2007
Sat Oct 27 03:05:30 PDT 2007 Tim Chevalier <chevalier at alum.wellesley.edu>
* Make compileToCore return the module name and type environment along with bindings
compileToCore returned just a list of CoreBind, which isn't enough,
since to do anything with the resulting Core code, you probably also
want the type declarations. I left compileToCore as it is, but added a
function compileToCoreModule that returns a complete Core module (with
module name, type environment, and bindings). I'm not sure that
returning the type environment is the best way to represent the type
declarations for the given module, but I don't want to reinvent the
External Core wheel for this.
M ./compiler/main/GHC.hs -17 +28
M ./compiler/main/HscMain.lhs -2 +6
M ./compiler/main/HscTypes.lhs -1 +17
More information about the Cvs-ghc
mailing list