|
RE: special handling of "Main.hs" contradicts Report: msg#00004lang.haskell.glasgow.bugs
| > 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> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-537295 ] div 0 0 give exception / endless loop, SourceForge.net |
|---|---|
| Next by Date: | RE: ambiguity problem, Simon Peyton-Jones |
| Previous by Thread: | [ ghc-Bugs-732850 ] GHCi :i ommits constraints, SourceForge.net |
| Next by Thread: | RE: ambiguity problem, Simon Peyton-Jones |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |