Proposal: Add CUSeconds, CSUSeconds to Foreign.C.Types, and fix definition of CTimeval

Ian Lynagh igloo at
Fri Apr 22 22:25:40 CEST 2011

Hi all,

This is a proposal to add CUSeconds, CSUSeconds to Foreign.C.Types
(which are Haskell versions of the C useconds_t and suseconds_t types),
and fix the definition of CTimeval to use CTime and CSUSeconds rather
than CLong.

The C types are specified here:

This will fix a bug in getCPUTime on OS X.

Patches, from William Knop, to implement this are here:

Discussion deadline: 7 May 2011


More information about the Libraries mailing list