[Haskell-cafe] Converting EpochTime to Integer

Brandon Allbery 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
>     src/Main.hs:21:13:
>         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...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150916/2f3537f0/attachment.html>

More information about the Haskell-Cafe mailing list