logo       

RE: special handling of "Main.hs" contradicts Report: msg#00004

lang.haskell.glasgow.bugs

Subject: RE: special handling of "Main.hs" contradicts Report


| > How about just suggesting that users write 'module Main(main) where'
| > to get more efficient code?
|
| I second Ross's opinions. Here's a situation that I just encountered
that
| argues for his approach.

OK, we yield. GHC 6.0 will conform exactly to the report. That is, if
you
say
module Main where ...
it'll export all the top-level things defined in the module. If you omit
the
module header altogether, it'll behave as if you said
module Main( main ) where ...

Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise