Commit 8d44068
Don't suggest import an unnecessary data constructor. (#1984)
Usually, when the type constructor is used but the data constructor isn't, we
only suggest importing the type constructor. When the data constructor and type
constructor share the same name we get mixed up and suggest importing both.
The solution is to do a better job filtering out the data cons when we know we
are looking for a type con.
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>1 parent e48e02a commit 8d44068
File tree
2 files changed
+32
-6
lines changed- ghcide
- src/Development/IDE/Plugin
- test/exe
2 files changed
+32
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
807 | 811 | | |
808 | 812 | | |
809 | 813 | | |
| |||
823 | 827 | | |
824 | 828 | | |
825 | 829 | | |
826 | | - | |
| 830 | + | |
827 | 831 | | |
828 | 832 | | |
829 | 833 | | |
| |||
1318 | 1322 | | |
1319 | 1323 | | |
1320 | 1324 | | |
1321 | | - | |
1322 | | - | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1323 | 1328 | | |
1324 | 1329 | | |
1325 | 1330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
| 733 | + | |
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| |||
1436 | 1436 | | |
1437 | 1437 | | |
1438 | 1438 | | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
1439 | 1458 | | |
1440 | 1459 | | |
1441 | 1460 | | |
| |||
1486 | 1505 | | |
1487 | 1506 | | |
1488 | 1507 | | |
1489 | | - | |
1490 | | - | |
| 1508 | + | |
| 1509 | + | |
1491 | 1510 | | |
1492 | 1511 | | |
1493 | 1512 | | |
| |||
1566 | 1585 | | |
1567 | 1586 | | |
1568 | 1587 | | |
| 1588 | + | |
| 1589 | + | |
1569 | 1590 | | |
1570 | 1591 | | |
1571 | 1592 | | |
| |||
0 commit comments