id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
25	ghc requires main to be in Main	iavor_sd	simonpj	"{{{
it looks like ghc requires that the main function
be defined in the module Main, rather than simply
be exported from Main as the report says.  

here is an example:

module Main(main) where
import B


module B where
main = print ""hello""


ghc B.hs Main.hs
Module `Main' must include a definition for `main'

i tried this using ghc-5.02 on linux (mandrake 8.0 
distribution)

}}}"	bug	closed	normal		Compiler	5.02	Fixed										
