[Haskell-cafe] Re: Additonal types for Foreign.C.Types
briqueabraque at yahoo.com
Tue Feb 10 20:31:15 EST 2009
Sure it does!
> (...)So, for example if you have:
> foreign import ccall "string.h strlen" cstrlen :: Ptr CChar -> IO CSize
> fatype -> ftype :: ftype
> fatype :: fatype
> qtycon "Ptr"
> atype1 "CChar"
> fatype :: frtype
> qtycon "IO"
> atype1 "CSize"
> (I struggled a bit with finding a good way to communicate the
> productions chosen, so bear with me)
> Make sense?
>>> The FFI spec says (at
>> There I see:
>> I can't understand the "qtycon atype..." line. (...)
More information about the Haskell-Cafe