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 _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
