Haskell and C—functions returning more than one value

I’ve finally found some time to play with c2hs again. This time I had a quick look at passing pointers to C functions. Here’s what I found, in a rather short format: {# fun foo { alloca- `Int’ peekIntConv* } -> `()’ #} => foo :: IO Int {# fun foo { `Int’ peekIntConv* } …

Continue reading ‘Haskell and C—functions returning more than one value’ »

Share