Skip to content

Commit

Permalink
Add hints to convert for [1..n] to replicateM n (#1512)
Browse files Browse the repository at this point in the history
  • Loading branch information
googleson78 committed Jun 9, 2023
1 parent 8e863be commit e130027
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 @@ -593,6 +593,10 @@
- warn: {lhs: return x *> m, rhs: m}
- warn: {lhs: pure x >> m, rhs: m}
- warn: {lhs: return x >> m, rhs: m}
- warn: {lhs: "forM [1..n] (const f)", rhs: replicateM n f}
- warn: {lhs: "for [1..n] (const f)", rhs: replicateM n f}
- warn: {lhs: "forM [1..n] (\\_ -> x)", rhs: replicateM n x}
- warn: {lhs: "for [1..n] (\\_ -> x)", rhs: replicateM n x}

# STATE MONAD

Expand Down

0 comments on commit e130027

Please sign in to comment.