main modules in GHC, deriving differences between GHC and Hugs

Wolfgang Jeltsch wolfgang@jeltsch.net
Fri, 13 Jun 2003 23:13:08 +0200


On Friday, 2003-06-13, 22:06, CEST, Hal Daume III wrote:
> [...]

> Personally, I think this is stupid and that you should be able to compile
> any module with a 'main :: IO a' function as an executable without having to
> call it Main.

> [...]

I would even say that you should be able to use a "main variable" which is not 
named "main". You would have to specify its identifier at the command line. 
But I wouldn't allow arbitrary IO a types but only IO ().

>  - Hal

Wolfgang