| Greetings -
| I'm attempting to use the FFI in STG Hugs, but when I try and 
| declare something
| like:
| import Word
| foreign import ccall "foo" "Foo_Bar" bar :: Word8 -> IO()
| 
| I get the error:
| Illegal outbound (away from Haskell) type "Word8"
| 
| I'm wanting Word8 to be an 8 bit unsigned integer.
| Is this something that is just not implemented yet, or am I 
| doing it wrong?

It's not implemented.  What's implemented is:

   Char Int Word Addr Float Double Stable

Maybe you could get away with Char?  It's worth trying.

J

Reply via email to