Re: [Haskell-cafe] safe vs unsafe

2008-06-24 Thread Adam Langley
2008/6/23 Galchin, Vasili [EMAIL PROTECTED]: aio: schedule: re-entered unsafely. Perhaps a 'foreign import unsafe' should be 'safe'? I want to understand from an implementation viewpoint .. deeper. This is a GC issue yes? Are you reentering Haskell on a path which involves an unsafe FFI

Re: [Haskell-cafe] safe vs unsafe

2008-06-24 Thread Galchin, Vasili
yes I am invoking a callback function written in Haskell. On Tue, Jun 24, 2008 at 12:03 PM, Adam Langley [EMAIL PROTECTED] wrote: 2008/6/23 Galchin, Vasili [EMAIL PROTECTED]: aio: schedule: re-entered unsafely. Perhaps a 'foreign import unsafe' should be 'safe'? I want to

Re: [Haskell-cafe] safe vs unsafe

2008-06-24 Thread Adam Langley
On Tue, Jun 24, 2008 at 12:08 PM, Galchin, Vasili [EMAIL PROTECTED] wrote: yes I am invoking a callback function written in Haskell. Then you should just need to remove the unsafe from the foreign import decl which leads to the callback getting called. AGL -- Adam Langley [EMAIL PROTECTED]

[Haskell-cafe] safe vs unsafe

2008-06-23 Thread Galchin, Vasili
Hello, At runtime, I am getting aio: schedule: re-entered unsafely. Perhaps a 'foreign import unsafe' should be 'safe'? I want to understand from an implementation viewpoint .. deeper. This is a GC issue yes? Kind regards, Vasili ___