Thomas Hoefer <[EMAIL PROTECTED]> writes:
> 
> I have problems in compiling GreenCard 2.0 with GHC 2.10. 
>  Everything works just fine until the module "StdDIS.hs" is to be compiled...
>  
>  'make all' stops with the following message:
>  
>  
>  ghc-2.10 -fglasgow-exts -fno-prune-tydecls -c StdDIS.hs -o StdDIS.o
>  
>  StdDIS.hs:158: No instance for: `CCallable Word32'
 ...

Hi,

instances for the system classes CCallable and CReturnable for the
various Word* and Int* types were added just after 2.10 was released,
so to fix this without upgrading to ghc-3.xx you need to add the
following lines to StdDIS.gc:

instance CCallable Word32
instance CReturnable Word32
instance CCallable Int32
instance CReturnable Int32

hope that helps,
--Sigbjorn


Reply via email to