[project @ 2004-06-13 21:03:46 by panne]
Changes related to arithmetic types:
* Renamed macros NUMERIC_FOO to ARITHMETIC_FOO to match C99-speak
* ARITHMETIC_TYPEs now have a Real instance, otherwise they are quite useless.
Note that this differs from the FFI spec, but the spec should very probably
changed in this respect.
* Some changes to fix the wrong assumption that CTime/CClock are integral types,
C99 in fact guarantees only that they are arithmetic types. This has been
accomplished by using
realToInteger = round . realToFrac :: Real a => a -> Integer
instead of fromIntegral for CTime/CClock. I'm not sure if we could do better,
going via Double seems to be overkill, but I couldn't think of a better way.
GHC could e.g. use RULES here. Improvements welcome.