Skip to content

Commit 6035a13

Browse files
authored
Merge pull request #1617 from ysangkok/applicative-rhs
Add hints for when 'x <*> y' could be 'y'
2 parents 8755462 + d5357af commit 6035a13

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

data/hlint.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,12 @@
508508
- warn: {lhs: x <* return y, rhs: x}
509509
- warn: {lhs: pure x *> y, rhs: "y", name: Redundant *>}
510510
- warn: {lhs: return x *> y, rhs: "y", name: Redundant *>}
511+
- warn: {lhs: "x <*> Nothing", rhs: "Nothing" }
512+
- warn: {lhs: "x <*> First Nothing", rhs: "First Nothing" }
513+
- warn: {lhs: "x <*> Last Nothing", rhs: "Last Nothing" }
514+
- warn: {lhs: "x <*> Left a", rhs: "Left a" }
515+
- warn: {lhs: "x <*> Ap []", rhs: "Ap []" }
516+
- warn: {lhs: "x <*> []", rhs: "[]" }
511517

512518
# MONAD
513519

0 commit comments

Comments
 (0)