[Haskell-cafe] Converting EpochTime to Integer
bneijt at gmail.com
Tue Sep 15 16:42:16 UTC 2015
Dear Haskell cafe,
I want to convert form
mtime :: System.Posix.Types.EpochTime
to something aeson can eat without having to define an instance. I
My current solution is just using (read . show). I know, ugly, but
the only thing I could get going.
What is the proper way to convert System.Posix.Types.EpochTime to
Integer or something else aeson will automatically convert without
making a ToJSON instance?
As a beginner I wonder: is there a general way to go about finding
conversion paths between types?
More information about the Haskell-Cafe