|
GHC from CVS HEAD does not require that the Main module export "main": msg#00040lang.haskell.glasgow.bugs
The Haskell 98 report says "A Haskell program is a collection of modules, one of which, by convention, must be called Main and must export the value main." However, the program below builds and executes fine. module Main() -- should be "module Main" or "module Main(main)" where main = putStrLn "Hello, World" $ runghc Main.hs Hello, World
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-1219920 ] socketToHandle, hGetContents cause errors in ghci, SourceForge.net |
|---|---|
| Next by Date: | [ ghc-Bugs-1220281 ] hsc2hs looks for cmd.exe under Win98, SourceForge.net |
| Previous by Thread: | [ ghc-Bugs-1219920 ] socketToHandle, hGetContents cause errors in ghci, SourceForge.net |
| Next by Thread: | [ ghc-Bugs-1220281 ] hsc2hs looks for cmd.exe under Win98, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |