[project @ 2003-07-09 11:06:31 by simonpj]
authorsimonpj <unknown>
Wed, 9 Jul 2003 11:06:32 +0000 (11:06 +0000)
committersimonpj <unknown>
Wed, 9 Jul 2003 11:06:32 +0000 (11:06 +0000)
commitf8031f577f9667ef1ab439b11fdd15fc39a79630
treef61e4d4d0c3d92bf0555a2e05109290849f2ea21
parent38c8801e397417be75ac4427d9c0a62a7942e0eb
[project @ 2003-07-09 11:06:31 by simonpj]
--------------------------
Fix two External-Core bugs
--------------------------

1.  An inadvertent "let x = ...x..." bug in TcRnDriver

2.  Adjust the new -main-is story, so that the root module is called
":Main" instead of "$Main".
    This means that the z-encoded module name is "ZCMain" rather than "zdMain",
    which in keeps the External-Core lexer happy.  And is more consistent generally.

3.  Make the renamer happy to see definitions from modules other than the "home" one,
    when doing External Core.  In the main module, there'll be a definition for
    ZCMain.main.
ghc/compiler/codeGen/CodeGen.lhs
ghc/compiler/prelude/PrelNames.lhs
ghc/compiler/rename/RnEnv.lhs
ghc/compiler/typecheck/TcRnDriver.lhs