Skip to content

Commit

Permalink
Merge pull request ndmitchell#1617 from ysangkok/applicative-rhs
Browse files Browse the repository at this point in the history
Add hints for when 'x <*> y' could be 'y'
  • Loading branch information
ndmitchell authored Oct 20, 2024
2 parents 8755462 + d5357af commit 6035a13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/hlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,12 @@
- warn: {lhs: x <* return y, rhs: x}
- warn: {lhs: pure x *> y, rhs: "y", name: Redundant *>}
- warn: {lhs: return x *> y, rhs: "y", name: Redundant *>}
- warn: {lhs: "x <*> Nothing", rhs: "Nothing" }
- warn: {lhs: "x <*> First Nothing", rhs: "First Nothing" }
- warn: {lhs: "x <*> Last Nothing", rhs: "Last Nothing" }
- warn: {lhs: "x <*> Left a", rhs: "Left a" }
- warn: {lhs: "x <*> Ap []", rhs: "Ap []" }
- warn: {lhs: "x <*> []", rhs: "[]" }

# MONAD

Expand Down

0 comments on commit 6035a13

Please sign in to comment.