Skip to content

Commit

Permalink
Merge pull request #1486 from jvoigtlaender/rename-concatMap-hints
Browse files Browse the repository at this point in the history
rename three of the hints introduced in #1481
  • Loading branch information
ndmitchell authored Jan 14, 2024
2 parents 6ed8f43 + 551534b commit 375a232
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/hlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -880,9 +880,9 @@
- warn: {lhs: all f (concatMap g x), rhs: all (all f . g) x}
- warn: {lhs: fold (concatMap f x), rhs: foldMap (fold . f) x}
- warn: {lhs: foldMap f (concatMap g x), rhs: foldMap (foldMap f . g) x}
- warn: {lhs: catMaybes (concatMap f x), rhs: concatMap (catMaybes . f) x, name: Move concatMap out}
- hint: {lhs: filter f (concatMap g x), rhs: concatMap (filter f . g) x, name: Move concatMap out}
- warn: {lhs: mapMaybe f (concatMap g x), rhs: concatMap (mapMaybe f . g) x, name: Move concatMap out}
- warn: {lhs: catMaybes (concatMap f x), rhs: concatMap (catMaybes . f) x, name: Move catMaybes}
- hint: {lhs: filter f (concatMap g x), rhs: concatMap (filter f . g) x, name: Move filter}
- warn: {lhs: mapMaybe f (concatMap g x), rhs: concatMap (mapMaybe f . g) x, name: Move mapMaybe}
- warn: {lhs: or (fmap p x), rhs: any p x}
- warn: {lhs: or (p <$> x), rhs: any p x}
- warn: {lhs: or (x <&> p), rhs: any p x}
Expand Down

0 comments on commit 375a232

Please sign in to comment.