File tree Expand file tree Collapse file tree 2 files changed +97
-0
lines changed Expand file tree Collapse file tree 2 files changed +97
-0
lines changed Original file line number Diff line number Diff line change 1
1
Changelog for HLint (* = breaking change)
2
2
3
+ #1617, hints for when x <*> y could be y, e.g. []
3
4
* #1594, upgrade to GHC 9.10
4
5
#1568, add mapMaybe f (reverse x) ==> reverse (mapMaybe f x)
5
6
#1569, avoid redundant Foldable.toList calls in Foldable operations
Original file line number Diff line number Diff line change @@ -7723,6 +7723,102 @@ y
7723
7723
<td>Warning</td>
7724
7724
</tr>
7725
7725
<tr>
7726
+ <td>Redundant <*></td>
7727
+ <td>
7728
+ LHS:
7729
+ <code>
7730
+ x <*> Nothing
7731
+ </code>
7732
+ <br>
7733
+ RHS:
7734
+ <code>
7735
+ Nothing
7736
+ </code>
7737
+ <br>
7738
+ </td>
7739
+ <td>Warning</td>
7740
+ </tr>
7741
+ <tr>
7742
+ <td>Redundant <*></td>
7743
+ <td>
7744
+ LHS:
7745
+ <code>
7746
+ x <*> First Nothing
7747
+ </code>
7748
+ <br>
7749
+ RHS:
7750
+ <code>
7751
+ First Nothing
7752
+ </code>
7753
+ <br>
7754
+ </td>
7755
+ <td>Warning</td>
7756
+ </tr>
7757
+ <tr>
7758
+ <td>Redundant <*></td>
7759
+ <td>
7760
+ LHS:
7761
+ <code>
7762
+ x <*> Last Nothing
7763
+ </code>
7764
+ <br>
7765
+ RHS:
7766
+ <code>
7767
+ Last Nothing
7768
+ </code>
7769
+ <br>
7770
+ </td>
7771
+ <td>Warning</td>
7772
+ </tr>
7773
+ <tr>
7774
+ <td>Redundant <*></td>
7775
+ <td>
7776
+ LHS:
7777
+ <code>
7778
+ x <*> Left a
7779
+ </code>
7780
+ <br>
7781
+ RHS:
7782
+ <code>
7783
+ Left a
7784
+ </code>
7785
+ <br>
7786
+ </td>
7787
+ <td>Warning</td>
7788
+ </tr>
7789
+ <tr>
7790
+ <td>Redundant <*></td>
7791
+ <td>
7792
+ LHS:
7793
+ <code>
7794
+ x <*> Ap []
7795
+ </code>
7796
+ <br>
7797
+ RHS:
7798
+ <code>
7799
+ Ap []
7800
+ </code>
7801
+ <br>
7802
+ </td>
7803
+ <td>Warning</td>
7804
+ </tr>
7805
+ <tr>
7806
+ <td>Redundant <*></td>
7807
+ <td>
7808
+ LHS:
7809
+ <code>
7810
+ x <*> []
7811
+ </code>
7812
+ <br>
7813
+ RHS:
7814
+ <code>
7815
+ []
7816
+ </code>
7817
+ <br>
7818
+ </td>
7819
+ <td>Warning</td>
7820
+ </tr>
7821
+ <tr>
7726
7822
<td>Monad law, left identity</td>
7727
7823
<td>
7728
7824
LHS:
You can’t perform that action at this time.
0 commit comments