[Haskell-cafe] FFI: foreign label declaration

2007-12-11 Thread Ricardo Herrmann

Hi everyone,

I'm trying to get HBDD compiled under GHC 6.8.1 and now I'm stuck with a
.chs file which uses a foreign label syntax, which seems deprecated, since
the parser can't even recognize it:

foreign label bdd_reorder_stable_window3
  bdd_reorder_stable_window3 :: FunPtr (BDDManager - IO ())

Is there new syntax for this ? Or is it a deprecated functionality ?

Thanks in advance,

--
Ricardo GuimarĂ£es Herrmann
In a concurrent world, imperative is the wrong default! -- Tim Sweeney
(Epic Games)
-- 
View this message in context: 
http://www.nabble.com/FFI%3A-%22foreign-label%22-declaration-tp14279625p14279625.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] FFI: foreign label declaration

2007-12-11 Thread Malcolm Wallace
Ricardo Herrmann [EMAIL PROTECTED] wrote:

 a .chs file which uses a foreign label syntax, which seems
 deprecated, since the parser can't even recognize it:
 
 foreign label bdd_reorder_stable_window3
   bdd_reorder_stable_window3 :: FunPtr (BDDManager - IO ())
 
 Is there new syntax for this ? Or is it a deprecated functionality ?

I believe it is now foreign import with an ampersand in front of the
name of the foreign entity, e.g.

  foreign import  bdd_reorder_stable_window3
bdd_reorder_stable_window3 :: FunPtr (BDDManager - IO ())

Regards,
Malcolm
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] FFI: foreign label declaration

2007-12-11 Thread Ricardo Herrmann


Malcolm Wallace wrote:
 
 Ricardo Herrmann [EMAIL PROTECTED] wrote:
 
 a .chs file which uses a foreign label syntax, which seems
 deprecated, since the parser can't even recognize it:
 
 foreign label bdd_reorder_stable_window3
   bdd_reorder_stable_window3 :: FunPtr (BDDManager - IO ())
 
 Is there new syntax for this ? Or is it a deprecated functionality ?
 
 I believe it is now foreign import with an ampersand in front of the
 name of the foreign entity, e.g.
 
   foreign import  bdd_reorder_stable_window3
 bdd_reorder_stable_window3 :: FunPtr (BDDManager - IO ())
 
 

Changing foreign label to foreign import ccall (with the ampersand) did
the trick, thanks.

PS: At least it compiled, but I still didn't check if it works ;-)

-- 
View this message in context: 
http://www.nabble.com/FFI%3A-%22foreign-label%22-declaration-tp14279625p14281281.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe