Skip to content

Commit

Permalink
Update the changelog and hints
Browse files Browse the repository at this point in the history
Summary:

Test Plan:
  • Loading branch information
ndmitchell committed Oct 20, 2024
1 parent 6035a13 commit ad9a1f8
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Changelog for HLint (* = breaking change)

#1617, hints for when x <*> y could be y, e.g. []
* #1594, upgrade to GHC 9.10
#1568, add mapMaybe f (reverse x) ==> reverse (mapMaybe f x)
#1569, avoid redundant Foldable.toList calls in Foldable operations
Expand Down
96 changes: 96 additions & 0 deletions hints.md
Original file line number Diff line number Diff line change
Expand Up @@ -7723,6 +7723,102 @@ y
<td>Warning</td>
</tr>
<tr>
<td>Redundant <*></td>
<td>
LHS:
<code>
x <*> Nothing
</code>
<br>
RHS:
<code>
Nothing
</code>
<br>
</td>
<td>Warning</td>
</tr>
<tr>
<td>Redundant <*></td>
<td>
LHS:
<code>
x <*> First Nothing
</code>
<br>
RHS:
<code>
First Nothing
</code>
<br>
</td>
<td>Warning</td>
</tr>
<tr>
<td>Redundant <*></td>
<td>
LHS:
<code>
x <*> Last Nothing
</code>
<br>
RHS:
<code>
Last Nothing
</code>
<br>
</td>
<td>Warning</td>
</tr>
<tr>
<td>Redundant <*></td>
<td>
LHS:
<code>
x <*> Left a
</code>
<br>
RHS:
<code>
Left a
</code>
<br>
</td>
<td>Warning</td>
</tr>
<tr>
<td>Redundant <*></td>
<td>
LHS:
<code>
x <*> Ap []
</code>
<br>
RHS:
<code>
Ap []
</code>
<br>
</td>
<td>Warning</td>
</tr>
<tr>
<td>Redundant <*></td>
<td>
LHS:
<code>
x <*> []
</code>
<br>
RHS:
<code>
[]
</code>
<br>
</td>
<td>Warning</td>
</tr>
<tr>
<td>Monad law, left identity</td>
<td>
LHS:
Expand Down

0 comments on commit ad9a1f8

Please sign in to comment.