[project @ 2004-06-13 17:16:40 by panne]
authorpanne <unknown>
Sun, 13 Jun 2004 17:16:40 +0000 (17:16 +0000)
committerpanne <unknown>
Sun, 13 Jun 2004 17:16:40 +0000 (17:16 +0000)
The FFI report does not mention that CClock and CTime have instances for
Bounded, Real, Integral, and Bits.

Foreign/C/Types.hs

index 9816f12..8a09e44 100644 (file)
@@ -154,8 +154,8 @@ INTEGRAL_TYPE(CSigAtomic,tyConCSigAtomic,"CSigAtomic",HTYPE_SIG_ATOMIC_T)
 "fromIntegral/CSigAtomic->a" fromIntegral = \(CSigAtomic x) -> fromIntegral x
  #-}
 
-INTEGRAL_TYPE(CClock,tyConCClock,"CClock",HTYPE_CLOCK_T)
-INTEGRAL_TYPE(CTime,tyConCTime,"CTime",HTYPE_TIME_T)
+NUMERIC_TYPE(CClock,tyConCClock,"CClock",HTYPE_CLOCK_T)
+NUMERIC_TYPE(CTime,tyConCTime,"CTime",HTYPE_TIME_T)
 
 -- FIXME: Implement and provide instances for Eq and Storable
 data CFile = CFile