Bignum: fix bogus rewrite rule (#19345)
1 unresolved thread
1 unresolved thread
Fix the following rule:
"fromIntegral/Int->Natural" fromIntegral = naturalFromWord . fromIntegral
Its type wasn't constrained to Int hence #19345 (closed).
Merge request reports
Activity
Filter activity
added 1 commit
- d9f80a5a - Bignum: fix bogus rewrite rule (#19345 (closed))
mentioned in issue #19345 (closed)
- Resolved by Sylvain Henry
added 1 commit
- 8815ef03 - Bignum: fix bogus rewrite rule (#19345 (closed))
added 1 commit
- a442f4be - Bignum: fix bogus rewrite rule (#19345 (closed))
580 580 #-} 581 581 582 582 {-# RULES 583 "fromIntegral/Natural->Natural" fromIntegral = id :: Natural -> Natural 584 "fromIntegral/Natural->Integer" fromIntegral = toInteger :: Natural->Integer 585 "fromIntegral/Natural->Word" fromIntegral = naturalToWord 583 "fromIntegral/Natural->Natural" fromIntegral = id :: Natural -> Natural 584 "fromIntegral/Natural->Integer" fromIntegral = toInteger :: Natural -> Integer 585 "fromIntegral/Natural->Word" fromIntegral = naturalToWord :: Natural -> Word 586 586 #-} 587 587 588 -- Don't forget the types in the following rules! See #19345 for an example of 589 -- bug introduced because of a missing type in the following rule: 590 -- 591 -- "fromIntegral/Int->Natural" fromIntegral = naturalFromWord . fromIntegral changed this line in version 5 of the diff
added 1 commit
- 9127d734 - Bignum: fix bogus rewrite rule (#19345 (closed))
added 1 commit
- 7aae263c - Bignum: fix bogus rewrite rule (#19345 (closed))
assigned to @marge-bot
I will attempt to batch this MR (!4990 (closed))...
Batch MR !4990 (closed) failed: CI failed! I will retry later...
I will attempt to batch this MR (!5003 (closed))...
Merged in 5e71dd33
mentioned in merge request !5014 (merged)
Backported in !5014 (merged).
mentioned in issue #19411 (closed)
Please register or sign in to reply