Commit 567bd06
authored
Fix GHC's incomplete-uni-patterns warnings (#1175)
Add explicit errors for unexpected cases. Note
* For the IntMap changes, the error case gets removed completely after
inlining and case-of-case optimization.
* For Sequence, the let has become a case, but there is no change in
strictness since the result is strict in the matched value anyway.
Unlike IntMap above, the error case remains (but, of course, is never
executed as long as the implementation is correct).1 parent d77b0f5 commit 567bd06
File tree
3 files changed
+30
-15
lines changed- containers/src/Data
- IntMap
- Strict
- Sequence
3 files changed
+30
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
1227 | 1226 | | |
1228 | 1227 | | |
1229 | 1228 | | |
1230 | | - | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
1231 | 1233 | | |
1232 | 1234 | | |
1233 | 1235 | | |
| |||
1401 | 1403 | | |
1402 | 1404 | | |
1403 | 1405 | | |
1404 | | - | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
1405 | 1410 | | |
1406 | 1411 | | |
1407 | 1412 | | |
| |||
1492 | 1497 | | |
1493 | 1498 | | |
1494 | 1499 | | |
1495 | | - | |
1496 | | - | |
| 1500 | + | |
| 1501 | + | |
1497 | 1502 | | |
1498 | 1503 | | |
1499 | 1504 | | |
| 1505 | + | |
1500 | 1506 | | |
1501 | 1507 | | |
1502 | 1508 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
665 | 663 | | |
666 | 664 | | |
667 | 665 | | |
668 | | - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
669 | 670 | | |
670 | 671 | | |
671 | 672 | | |
| |||
717 | 718 | | |
718 | 719 | | |
719 | 720 | | |
720 | | - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
721 | 725 | | |
722 | 726 | | |
723 | 727 | | |
| |||
763 | 767 | | |
764 | 768 | | |
765 | 769 | | |
766 | | - | |
767 | | - | |
768 | | - | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
769 | 775 | | |
770 | 776 | | |
771 | 777 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
4082 | 4081 | | |
4083 | 4082 | | |
4084 | 4083 | | |
4085 | | - | |
| 4084 | + | |
| 4085 | + | |
4086 | 4086 | | |
| 4087 | + | |
4087 | 4088 | | |
4088 | 4089 | | |
4089 | 4090 | | |
| |||
4097 | 4098 | | |
4098 | 4099 | | |
4099 | 4100 | | |
4100 | | - | |
| 4101 | + | |
| 4102 | + | |
4101 | 4103 | | |
| 4104 | + | |
4102 | 4105 | | |
4103 | 4106 | | |
4104 | 4107 | | |
| |||
0 commit comments