Pablo Pedemonte writes:
>
> Hi,
>
> I had got the green-card version 2 from
> ftp://ftp.dcs.glasgow.ac.uk/pub/haskell/glasgow/green-card/gc-v2-270498_tar.gz
> (I don't know if it is the right version of green-card for using with ghc
> 2.10)
> and I had the folowing problem when I tried to compile it:
>
> ppedemon$ make all
> make[1]: Entering directory `/usr1/fcional/apps/haskell/green-card-v2/src'
> make[1]: Leaving directory `/usr1/fcional/apps/haskell/green-card-v2/src'
> make[1]: Entering directory `/usr1/fcional/apps/haskell/green-card-v2/lib'
> make[2]: Entering directory `/usr1/fcional/apps/haskell/green-card-v2/lib/ghc'
> /usr1/fcional/bin/ghc2.10 -fglasgow-exts -fno-prune-tydecls -fvia-C -c
> StdDIS.hs -o StdDIS.o
>
> StdDIS.hs:135: No instance for: `CCallable Word32'
...
>
Hi,
if you're compiling the sources with ghc-2.10, you'll need to add the
following four lines to StdDIS.gc
instance CCallable Word32
instance CReturnable Word32
instance CCallable Int32
instance CReturnable Int32
I've updated lib/ghc/StdDIS.gc in the dist. accordingly and uploaded a
new snapshot.
Thanks,
--Sigbjorn