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
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
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
| 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 = (\_ -
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
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
[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