>> For what it's worth, I ran Ian's program on Hugs (with minor
>> changes: Hugs gets confused by the use of type synonyms in ffi
>> decls)

> Is this a hugs bug or am I being non-portable?

I'd class it as a reflection of the immaturity of Hugs' new ffi
implementation - but others might reasonably call it a Hugs bug :-)

For them that care, the problems in Hugs are:

1) The CTypes implementation is pretty lame and omits even obvious
   types like CInt.

2) Hugs doesn't 'look through' type synonyms and newtypes when 
   deciding if an argument or result type is legal.


> I reached this point having discovered that the Haskell equivalent
> of "keypad(stdscr, TRUE)" (insert digression/rant about having to
> assume bool is a numerical type in curses here) had no effect but
> using the result of initscr worked fine.

I presume the rant would be to the effect that it's painful that the
ffi doesn't handle macros such as TRUE or perhaps the plausible but not
always correct use of 0/1 to marshall False/True?  

The short answer is that GreenCard and friends exist for that very
purpose.

-- 
Alastair Reid        [EMAIL PROTECTED]        http://www.cs.utah.edu/~reid/

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to