#5878: main-is is too conservative
---------------------------------+------------------------------------------
Reporter: simonpj | Owner: simonmar
Type: bug | Status: new
Priority: normal | Milestone: 7.4.2
Component: Compiler | Version: 7.4.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Changes (by simonpj):
* cc: conrad@…, qdunkan@… (added)
* owner: => simonmar
* milestone: => 7.4.2
Comment:
Simon and I discussed this. You're right, this behaviour is way too
conservative.
The idea is that if
* The source code is the same
* The flags are the same
then the output of GHC will be the same. So for recompilation checking we
treat (some) flags as part of the source code, as it were.
Our mistake was to treat the flag as "`--main-is foo.hs`". Instead we
should have a virtual flag, pretty much a boolean saing "''this'' module
is the main one". So when that boolean changes the output of GHC will
change.
Simon M will do.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5878#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs