
7 Feb
2011
7 Feb
'11
2:28 p.m.
I'm just now trying to figure out how to use the FFI, along with hsc2hs. When I use the #type ... directive in my .hsc files to pull in a c typedef that is aliased to an integer, it puts in "Word32" instead of CInt. I was hoping to use this in my foreign imports: Two questions: - Can I declare a foreign import of a c function that takes a c 'int' to have a 'word32' input type in Haskell and will that function correctly? - Why doesn't hsc2hs use 'CInt' instead? -- Edward Amsden Undergraduate Computer Science Rochester Institute of Technology www.edwardamsden.com
5217
Age (days ago)
5217
Last active (days ago)
0 comments
1 participants
participants (1)
-
Edward Amsden