[Haskell-cafe] Converting EpochTime to Integer
allbery.b at gmail.com
Wed Sep 16 13:04:21 UTC 2015
On Wed, Sep 16, 2015 at 7:19 AM, Bram Neijt <bneijt at gmail.com> wrote:
> If I use
> return (toInteger mtime)
> I get
> No instance for (Integral System.Posix.Types.EpochTime)
I had been wondering about the claim that it had an Integral instance,.. it
has Num but not Integral.
It *does* have an Enum instance, so fromEnum shoiuld work.
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe