
16 Sep
2015
16 Sep
'15
9:54 a.m.
On 16/09/15 16:04, Brandon Allbery wrote:
On Wed, Sep 16, 2015 at 7:19 AM, Bram Neijt
mailto:bneijt@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.
Except that's not 2038-safe (fromEnum :: Enum a => a -> Int). Roman