Let 'loadModule' generate proper code depending on the 'hscTarget'.
authorThomas Schilling <nominolo@googlemail.com>
Fri, 28 Nov 2008 16:44:12 +0000 (16:44 +0000)
committerThomas Schilling <nominolo@googlemail.com>
Fri, 28 Nov 2008 16:44:12 +0000 (16:44 +0000)
commit854afa17c0588b2b1a238a5c9e572bc9ad07bcf0
tree8f8d6258c79e3523a2689223755ee0456d682dfa
parent8d48737f404f079a3deec1c00c86aa028a124efb
Let 'loadModule' generate proper code depending on the 'hscTarget'.

With this change it should be possible to perform something similar to
'load' by traversing the module graph in dependency order and calling
'{parse,typecheck,load}Module' on each.  Of course, if you want smart
recompilation checking you should still use 'load'.
compiler/main/DriverPipeline.hs
compiler/main/GHC.hs