GHC: Ticket #7801: Change C arithmetic types to integral types.
http://ghc.haskell.org/trac/ghc/ticket/7801
<p>
I've done some looking, and I haven't found a case where C's arithmetic types aren't implemented as integers or words. Furthermore, the arithmetic types already allow (*) via Num, so it'd be nice to have them be Integral types so that we have div, too.
</p>
<p>
I propose we include Bits, Enum, and Integral instances for CTime and friends.
</p>
<p>
Jeff
</p>
en-usGHChttp://ghc.haskell.org/trac/ghc/chrome/site/ghc_logo.png
http://ghc.haskell.org/trac/ghc/ticket/7801
Trac 1.0.9jeffshawFri, 29 Mar 2013 21:38:52 GMTattachment set
http://ghc.haskell.org/trac/ghc/ticket/7801
http://ghc.haskell.org/trac/ghc/ticket/7801
<ul>
<li><strong>attachment</strong>
set to <em>ctime_integral.patch</em>
</li>
</ul>
<p>
Implements the proposed change.
</p>
TicketjeffshawFri, 29 Mar 2013 21:41:38 GMT
http://ghc.haskell.org/trac/ghc/ticket/7801#comment:1
http://ghc.haskell.org/trac/ghc/ticket/7801#comment:1
<p>
I forgot my best friend, Bounded!
</p>
TicketiglooMon, 08 Apr 2013 11:52:27 GMTstatus changed; difficulty, resolution set
http://ghc.haskell.org/trac/ghc/ticket/7801#comment:2
http://ghc.haskell.org/trac/ghc/ticket/7801#comment:2
<ul>
<li><strong>status</strong>
changed from <em>new</em> to <em>closed</em>
</li>
<li><strong>difficulty</strong>
set to <em>Unknown</em>
</li>
<li><strong>resolution</strong>
set to <em>wontfix</em>
</li>
</ul>
<p>
Thanks for the suggestion, but I think that if we were to make that change then we might regret it in the future. If C only declares them to be arithmetic, then we should too.
</p>
Ticket