special handling of "Main.hs" contradicts Report
Simon Peyton-Jones
IMCEAEX-_O=MICROSOFT_OU=NORTHAMERICA_CN=RECIPIENTS_CN=428592 at microsoft.com
Tue May 6 06:17:30 EDT 2003
| > 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
More information about the Glasgow-haskell-bugs
mailing list