RE: (no subject)

2001-11-26 Thread Simon Marlow
i use green-card with ghc's FFI export to sth like Haskell - C -- Haskell the program is just arithmatic operations. the program seg fault in the callback from C to Haskell. anyone whether it is a bug? There aren't any known bugs, but there

RE: GHC garbage collector

2001-11-26 Thread Simon Marlow
I have some code that uses FFI capabilities to associate previously allocated memory with a structure akin to a ByteArray and allows Haskell land to read and write to the C side of things. I use ForeignPtr and associate a destructor to allow the GHC's garbage collector to clean up

RE: (no subject)

2001-11-26 Thread Yu Chen
hi, i've found the reason with someone's help. it is because i used %code instead of safecode in the gc file where i did callback. thanks! chenyu -- Original Message -- From: Simon Marlow [EMAIL PROTECTED] Date: Mon, 26 Nov 2001 09:42:39 -

Re: Socket library ghc 5.02.1

2001-11-26 Thread Sigbjorn Finne
Sven Eric Panitz [EMAIL PROTECTED] writes: It seems that the Socket library does still not work with ghc 5.02.1. I tried the simple test: main = do d - connectTo localhost (PortNumber 80) hPutStr d GET / HTTP/1.0\n\n hFlush d c - hGetContents d