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

#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

#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: -----------------------------+---------------------------------------------- Comment(by jeffshaw): I forgot my best friend, Bounded! -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7801#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7801: Change C arithmetic types to integral types. -------------------------------+-------------------------------------------- Reporter: jeffshaw | Owner: Type: feature request | Status: closed Priority: normal | Milestone: Component: libraries/base | Version: 7.6.2 Resolution: wontfix | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by igloo): * status: new => closed * difficulty: => Unknown * resolution: => wontfix Comment: 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. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7801#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC