RE: replacement of main

2003-12-09 Thread Simon Marlow
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

Re: incompatible signatur syntax within instance definition

2003-12-09 Thread Fergus Henderson
On 08-Dec-2003, Christian Maeder [EMAIL PROTECTED] wrote: Fergus Henderson wrote: I think the issue here is that in ghc (with -fglasgow-exts), the a here refers to the same type variable a in the top of the instance declaration, which has already been constained, and cannot be constrained

Making GHCi object files on MacOS

2003-12-09 Thread George Russell
Section 4.10.3 of the GHC manual tells me to use ld -r --whole-archive to convert a .a file into a .o file suitable for GHCi. However these options only work for GNU ld, which doesn't seem to be available on MacOS (uname -srv gives me Darwin 6.8 Darwin Kernel Version 6.8: Wed Sep 10 15:20:55

Re: Making GHCi object files on MacOS

2003-12-09 Thread ozone
On 10/12/2003, at 3:35 AM, George Russell wrote: The equivalent to GNU ld's --whole-archive option on Mac OS X is -all_load. Thank you, that seems to work. Now what should I do to prevent the GHCi linker complaining about duplicate definitions for __module_registered (which seems to be