replacement of main

Simon Marlow simonmar at microsoft.com
Tue Dec 9 09:24:37 EST 2003


 
> > > when I compile everything
> > > > ghc Halleg.hs Game.hs stub.c -L....(additional paths 
> for allegro)...
> > >     -lalleg(a few libs needed) -no-hs-main -o game
> > >
> > > I get this cryptic error:
> > > ----
> > > tcLookup: 'main' is not in scope
> > > In the first argument of 'GHC.TopHandler.runIO', namely 'main'
> > > When checking the type of 'main'
> > > ----
> >
> > Which version of GHC is it that you're using?
> 
> 6.0.1

I can't manage to get this error by doing the obvious things.  Could you
try to cut down the example (to one Haskell module module preferably)
and send us the code and the complete command line to reproduce the
error?

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list