[Haskell-cafe] Serializing UTCTimes
es at ertes.de
Fri Jan 20 15:26:23 CET 2012
Bas van Dijk <v.dijk.bas at gmail.com> wrote:
> However I have no idea how to serialize the DiffTime stored in an
> 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
nightmare = unsafePerformIO (getWrongWife >>= sex)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: not available
More information about the Haskell-Cafe