<div dir="ltr">On Thu, Mar 28, 2013 at 8:20 AM, David Virebayre <span dir="ltr">&lt;<a href="mailto:dav.vire+haskell@gmail.com" target="_blank">dav.vire+haskell@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">So, even if, in C, you may be able to apply arithmetic operations to a</div>
time_t, you can&#39;t be sure it makes sense, so you shouldn&#39;t normally do<br>
it. Why then, make it easier in Foreign.C to do something meaningless<br>
? That&#39;s just begging to shoot yourself in the foot.</blockquote><div><br></div><div>Because you need to convert it from a foreign representation, which may require arbitrary math depending on the details of that representation. And, while there may not be a strict meaning applied by the standard, there *is* a platform-dependent strict meaning (else times would be useless) *and* the conversion between the FFI and Haskell representations will need to know that platform-dependent meaning so that it can do a meaningful conversion. </div>
</div><div><br></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div>