#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
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to