Skip to content
  • Sylvain Henry's avatar
    Bignum: add support for negative shifts (fix #18499) · 6ee07b49
    Sylvain Henry authored and Marge Bot's avatar Marge Bot committed
    shiftR/shiftL support negative arguments despite Haskell 2010 report
    saying otherwise. We explicitly test for negative values which is bad
    (it gets in the way of constant folding, etc.). Anyway, for consistency
    we fix Bits instancesof Integer/Natural.
    6ee07b49