[project @ 2005-10-28 11:35:35 by simonmar]
authorsimonmar <unknown>
Fri, 28 Oct 2005 11:35:35 +0000 (11:35 +0000)
committersimonmar <unknown>
Fri, 28 Oct 2005 11:35:35 +0000 (11:35 +0000)
commit554959511db7fd80b6da073abcfceb2392902054
tree79a7effd712c0206bd8ed30b13c35e759d145e4c
parentd8afca91db837cc59ae505d113210c655d68c7b6
[project @ 2005-10-28 11:35:35 by simonmar]
Change the default executable name to match the basename of the source
file containing the Main module (or the module specified by -main-is),
if there is one.  On Windows, the .exe extension is added.

As requested on the ghc-users list, and as implemented by Tomasz
Zielonka <tomasz.zielonka at gmail.com>, with modifications by me.

I changed the type of the mainModIs field of DynFlags from Maybe
String to Module, which removed some duplicate code.
ghc/compiler/codeGen/CodeGen.lhs
ghc/compiler/main/DynFlags.hs
ghc/compiler/main/GHC.hs
ghc/compiler/typecheck/TcRnDriver.lhs