[Haskell-cafe] Practise of hiding contsructors and serialization

Marc Weber marco-oweber at gmx.de
Sun Feb 22 20:23:33 EST 2009


>    I usually use Data.Binary for serialization.
Sure. But you can't derive Data.Binary easily for NominalDiffTime.
That's the point. You can only do so by using toReal or by adding
data MyOwnPico = MyOwnPico only to create serialization instances.
I don't like this kind of code duplication..

Marc


More information about the Haskell-Cafe mailing list