Add a compileToCore function to the GHC API
authorTim Chevalier <chevalier@alum.wellesley.edu>
Mon, 25 Jun 2007 22:06:08 +0000 (22:06 +0000)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Mon, 25 Jun 2007 22:06:08 +0000 (22:06 +0000)
commitd7230e532eb485db85d4e446d7fba4192507b3ba
tree74ae3350a07064ed5a40ee4dd428d7e2cad12078
parent675f083f19d5395eb66c16d0ca02eb40467e6460
Add a compileToCore function to the GHC API

Added a compileToCore function to the GHC API that takes a
  session, module, and filename, and returns a list of Core
  bindings if successful. This is just a first try and could
  probably be improved (for example, there's probably a way to
  get the filename from the module so that it doesn't have to
  be passed in, I just don't see it offhand.)
compiler/main/GHC.hs