Tim Chevalier wrote:
On 6/27/07, Neil Mitchell <[EMAIL PROTECTED]> wrote:

It works fine. The problem is that loadCoreFile takes a filename, and
the module name of that filename. Is there any way I can modify this
code to not require the module name, but get it from the API?


Yeah, I figured that might be a source of complaint :-)
With a bit more digging around, I figured out how to get the module
name from the filename,

The right sequence would be

 (a) setTarget to the desired filename
 (b) depanal
 (c) find the module name by searching in the ModGraph
 (d) checkModule

and checkModule should optionally return the Core too.

Unfortunately, checkModule currently also does a depanal (it shouldn't, I'll remove it). Also checkModule doesn't return the Core (it should).

Cheers,
        Simon

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to