[GHC] #13203: Implement Bits Natural clearBit

GHC ghc-devs at haskell.org
Sat Jan 28 19:02:57 UTC 2017


#13203: Implement Bits Natural clearBit
-------------------------------------+-------------------------------------
           Reporter:  dylex          |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:                 |           Version:  8.0.2
  libraries/base                     |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 The current Bits Natural implementation says:
 {{{TODO: setBit, clearBit, complementBit (needs more primitives)}}}.
 The default implementations of setBit and complementBit work fine, but
 clearBit relies on complement, and so fails.  Even if it had to use a
 conditional complementBit on testBit, it would be better than nothing.

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


More information about the ghc-tickets mailing list