Re: How to find out the C type signature corresponding to a Haskell function type in FFI?

2006-03-08 Thread Marcin 'Qrczak' Kowalczyk
"Brian Hulley" <[EMAIL PROTECTED]> writes: > I've got a Haskell module with the following ffi import: > > foreign import ccall duma_init :: Int -> IO Int > > However my problem is that I've got no idea what the type signature > for the corresponding C function should be, HsInt duma_init(HsInt arg

Ticket #711 (Was: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?)

2006-03-08 Thread Michael Marte
[I am resending this message with a new subject because nobody seems to be reading the old thread.] I wanted to test the fix for ticket #711 but I am stuck because there is no current snapshot of ghc 6.5 for mingw. (The last one is dated end of February, the patch was commited on March, 2nd.)

Re: GHC 6.4.1 and Win32 DLLs: Bug in shutdownHaskell?

2006-03-08 Thread Michael Marte
Lennart Augustsson wrote: I'm not implying anything, except that I've plugged the space leak of 256M every time a DLL is loaded&unloaded. -- Lennart Michael Marte wrote: Lennart, do you imply that you have fixed the problem causing the crashes? May I safely assume that DLLs produced by

Re[2]: How to find out the C type signature corresponding to a Haskell function type in FFI?

2006-03-08 Thread Bulat Ziganshin
Hello Brian, Wednesday, March 8, 2006, 12:03:27 AM, you wrote: BH> mycallback :: GUIMonad m => EventInfo -> m EventResult BH> 'm' will have to combine a state monad with the IO monad (so I can use IORef BH> etc if needed). as Ian Lynagh wrote, it's no problem if your monad is IO-based. if FFI b