Skip to content

Commit

Permalink
Add hints to use const and const id
Browse files Browse the repository at this point in the history
  • Loading branch information
josephcsible authored Sep 14, 2020
1 parent b2fd3a7 commit ac9ee18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/hlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@

- warn: {lhs: \x -> x, rhs: id}
- warn: {lhs: \x y -> x, rhs: const}
- warn: {lhs: curry fst, rhs: const}
- warn: {lhs: \x y -> y, rhs: const id}
- warn: {lhs: curry snd, rhs: const id}
- warn: {lhs: flip const, rhs: const id}
- warn: {lhs: "\\(x,y) -> y", rhs: snd}
- warn: {lhs: "\\(x,y) -> x", rhs: fst}
- hint: {lhs: "\\x y -> f (x,y)", rhs: curry f}
Expand Down

0 comments on commit ac9ee18

Please sign in to comment.