
30 Mar
2008
30 Mar
'08
5:21 a.m.
Stefan O'Rear
The only type that you are allowed to assume corresponds to a C int is CInt, in the Foreign.C.Types module. This probably isn't the problem, but it could make problems of its own on a 64-bit or otherwise weird system.
So say I turn everything back to pointers to CInt, what is the accepted way to convert from CInt to Int and CInt to Char? Is relying on the fact that CInt always wraps a Haskell integer an okay way to go? I might was well learn these things now, before I get into bad habits. -- _jsn