RE: FFI Bug - Finalizer always called with NULL pointer?

2006-04-10 Thread Simon Peyton-Jones
Would you like to add to the GHC FAQ, or even start a Hints about using the FFI page? http://haskell.org/haskellwiki/GHC:Documentation (The section at the bottom called collaborative documentation is the place.) Hard-won experience like this should be captured. GHC's documentation is a

Re: FFI Bug - Finalizer always called with NULL pointer?

2006-04-10 Thread Simon Marlow
Brian Hulley wrote: Solved! By just using the following syntax, GHC compiles everything correctly: foreign import ccall duma_releaseFont -- absolutely vital for FunPtr functions duma_releaseFont :: FunPtr (Ptr RawFont - IO ()) Yes, you're not the first person to trip

Re: darcsweb

2006-04-10 Thread Simon Marlow
The GHC repo is currently not included in the darcsweb browser, because darcs is too slow when browsing the full GHC repo. Hopefully when the darcs folk speed up darcs changes on a specific file, we'll be able to enable it: http://bugs.darcs.net/issue124 Cheers, Simon

RE: Is there a way to optimize out some foreign calls?

2006-04-10 Thread Simon Peyton-Jones
| I'm thinking in terms of some way of marking foreign functions to specify | how they can be optimized out or specifying rewrite sequences eg | | x api_sync api_pop api_sync y = x api_pop | api_sync y You should be able to say something like RULE api_sync = (\_ -

unexpected ambiguity

2006-04-10 Thread Niklas Sorensson
Hello, Trying to compile the attached modules gives the following error message: Main.hs:8:15: Ambiguous occurrence `lift' It could refer to either `Control.Monad.Trans.lift', ... or `Apa.lift', imported from Apa at ... Is this correct? I would have expected

Re: unexpected ambiguity

2006-04-10 Thread wizztick-ghc
Niklas Sorensson wrote: Main.hs:8:15: Ambiguous occurrence `lift' It could refer to either `Control.Monad.Trans.lift', ... or `Apa.lift', imported from Apa at ... Is this correct? I would have expected that an unqualified lift could only refer to the one

Re: unexpected ambiguity

2006-04-10 Thread Niklas Sorensson
[EMAIL PROTECTED] wrote: Niklas Sorensson wrote: Main.hs:8:15: Ambiguous occurrence `lift' It could refer to either `Control.Monad.Trans.lift', ... or `Apa.lift', imported from Apa at ... Is this correct? I would have expected that an unqualified lift could