On 20 January 2012 15:03, Bas van Dijk <v.dijk....@gmail.com> wrote: > What's the recommended way for serializing (with the cereal package) an > UTCTime?
I'm now using the datetime package so I can do: import Data.DateTime (fromSeconds, toSeconds) instance Serialize UTCTime where get = fromSeconds <$> get put = put . toSeconds But I will have to look at the code of datetime to see if I'm not loosing precision. Bas _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe