Re: forcing a haskell object to WHNF from C

2003-01-29 Thread Wolfgang Thaller
Should/can I use rts_eval()? Yes. Any pointers on what this does (start new threads, cause garbage collection ...) would be appreciated. I can (and have) gone over the code but a more high level description would be helpful. rts_eval() may cause garbage collection to happen. This means tha

RE: forcing a haskell object to WHNF from C

2003-01-29 Thread Simon Marlow
> This might seem like a strange thing to do, but ... > > Presume I have a HaskellObj in some C code. I know that it is a thunk. > I want to force it to _WHNF_ . > > Should/can I use rts_eval()? > > Any pointers on what this does (start new threads, cause > garbage collection > ...) would be a

forcing a haskell object to WHNF from C

2003-01-29 Thread Bernard James POPE
Hi all, This might seem like a strange thing to do, but ... Presume I have a HaskellObj in some C code. I know that it is a thunk. I want to force it to _WHNF_ . Should/can I use rts_eval()? Any pointers on what this does (start new threads, cause garbage collection ...) would be appreciated.