• Herbert Valerio Riedel's avatar
    Override default `clearBit` method impl for `Natural` · 5984a698
    Herbert Valerio Riedel authored
    The default implementation of `clearBit` is in terms of
    `complement`. However, `complement` is not well-defined
    for `Natural` and this consequently renders the default
    implementation of `clearBit` dysfunctional.
    
    This implements `clearBit` in terms of `testBit`
    and `setBit` which are both well-defined for `Natural`s.
    
    This addresses #13203
    5984a698
Natural.hs 22.3 KB