[GHC] #7801: Change C arithmetic types to integral types.

GHC cvs-ghc at haskell.org
Fri Mar 29 22:38:15 CET 2013


#7801: Change C arithmetic types to integral types.
-----------------------------+----------------------------------------------
Reporter:  jeffshaw          |          Owner:                  
    Type:  feature request   |         Status:  new             
Priority:  normal            |      Component:  libraries/base  
 Version:  7.6.2             |       Keywords:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
 Failure:  None/Unknown      |      Blockedby:                  
Blocking:                    |        Related:                  
-----------------------------+----------------------------------------------
 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.

 I propose we include Bits, Enum, and Integral instances for CTime and
 friends.

 Jeff

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7801>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list