
20 Jan
2012
20 Jan
'12
9:26 a.m.
Bas van Dijk
However I have no idea how to serialize the DiffTime stored in an UTCTime:
instance Serialize DiffTime where get = ? put = ?
Note that DiffTime has this weird property that there is a Real instance, so you have a toRational function. ;) To go the other way you have a Fractional instance, so you also have 'fromRational'. Greets, Ertugrul -- nightmare = unsafePerformIO (getWrongWife >>= sex) http://ertes.de/