[Haskell-cafe] Converting CTime -> Int
Stefan O'Rear
stefanor at cox.net
Wed May 16 00:37:44 EDT 2007
On Tue, May 15, 2007 at 11:35:52PM -0500, Rob Hoelz wrote:
> Hello everyone,
>
> I'm writing an interface to C code, and one of the functions I'm
> wrapping returns time_t. I see that this maps to CTime in
> Foreign.C.Types, but I can't figure out how to convert it to an Int (or
> any other useful Haskell type, for that matter) for the life of me.
> I've poured over the standard library docs, but to no avail. Could
> someone give me a hint?
fromIntegral
Stefan
More information about the Haskell-Cafe
mailing list