[GHC] #1357: trouble using newForeignPtrEnv
GHC
trac at galois.com
Sun May 27 14:25:27 EDT 2007
#1357: trouble using newForeignPtrEnv
-------------------------+--------------------------------------------------
Reporter: Frederik | Owner:
Type: bug | Status: closed
Priority: high | Milestone:
Component: Compiler | Version: 6.6
Severity: normal | Resolution: invalid
Keywords: | Difficulty: Unknown
Os: Unknown | Testcase:
Architecture: Unknown |
-------------------------+--------------------------------------------------
Changes (by igloo):
* resolution: => invalid
* status: new => closed
Comment:
You need
{{{
foreign import ccall "null.h &fin_test" finalizerTest :: FunPtr (Ptr a ->
Ptr a -> IO ())
}}}
(note the ampersand). If you don't already, you also ought to have a
header file null.h with the C prototype for fin_test in.
Thanks
Ian
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1357>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list