Re: ForeignPtr and -threaded

2007-07-22 Thread PHO
From: Bulat Ziganshin <[EMAIL PROTECTED]> Subject: Re: ForeignPtr and -threaded Date: Sun, 22 Jul 2007 17:48:05 +0400 > try to add performGC at end - this should force collecting garbage and > therefore printing of string. otherwise, it's ok - there is no guarantee > that GC will be performed and

Re: ghc-pkg: can't unregister - not found - describe works?

2007-07-22 Thread Duncan Coutts
On Sat, 2007-07-21 at 16:25 +0200, Marc Weber wrote: > [EMAIL PROTECTED] /pr/source/wxh/wxhaskell-0.9.4 $ ghc-pkg-wrapper-6.6.1 > unregister wx > ghc-pkg: cannot find package wx > [EMAIL PROTECTED] /pr/source/wxh/wxhaskell-0.9.4 $ ghc-pkg-wrapper-6.6.1 > describe wx > name: wx > version: 0.10.1

Re: ForeignPtr and -threaded

2007-07-22 Thread Bulat Ziganshin
Hello PHO, Sunday, July 22, 2007, 5:36:27 PM, you wrote: > [2] Foreign.ForeignPtr > The following code prints nothing when it isn't linked with -threaded > RTS, but when it is, it *sometimes* prints "called" but not always. > import Foreign.Marshal.Alloc > import Foreign.Ptr > import Foreign.Fo

ForeignPtr and -threaded

2007-07-22 Thread PHO
Hi, I have encountered a weird behavior of ForeignPtr. I want to know how to work around this. I am using GHC 6.6.1 on Darwin. [1] Foreign.Concurrent The following code prints "called" when it is linked with -threaded RTS, but it prints nothing when it isn't. import Foreign.Marshal.Alloc impor