On Mon, 8 Dec 2003, Simon Marlow wrote: > Date: Mon, 8 Dec 2003 12:20:42 -0000 > From: Simon Marlow <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > Subject: RE: replacement of main > > > > ok, I guess this is not something you do every day; > > I am making a language binding for the library Allegro which has some > > weird things going on. I need to make a main() in C. > > > > so I followed the manual, I export my non-main haskell entrypoint > > and call it from the C main which basically is copy-paste from the > > docs. > > > > 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 > > Cheers, > Simon _______________________________________________ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users