[Haskell-cafe] instance Binary UTCTime (Was: Oprhan instances)

Stephen Tetley stephen.tetley at gmail.com
Thu Nov 26 16:48:18 EST 2009

Hello All

For instances on UTCTime - isn't UTCTime more 'canoncial' than
data-binary etc. by virtue of it being in the Hierarchical Libraries?

Thus data-binary "should" provide an instance of Binary for UTCTime -
rather than Time provide a Binary instance.

Also, aside from cases where automatic newtype deriving would
otherwise work is it, really so unpleasant to have a long-handed
getUTCTime rather than an overloaded get?

Best wishes


More information about the Haskell-Cafe mailing list