Skip to content

Commit

Permalink
Update hlint (digital-asset#4276)
Browse files Browse the repository at this point in the history
* Update hlint

changelog_begin
changelog_end

* Update hlint

changelog_begin
changelog_end
  • Loading branch information
shayne-fletcher authored Jan 30, 2020
1 parent 4be77fd commit a48b7b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions compiler/damlc/daml-ide-core/dlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@
- warn: {lhs: concatMap identity, rhs: concat}
- warn: {lhs: or (map p x), rhs: any p x}
- warn: {lhs: and (map p x), rhs: all p x}
- warn: {lhs: any f (map g x), rhs: any (f . g) x}
- warn: {lhs: all f (map g x), rhs: all (f . g) x}
- warn: {lhs: "zipWith (,)", rhs: zip}
- warn: {lhs: "zipWith3 (,,)", rhs: zip3}
- hint: {lhs: length x == 0, rhs: null x}
Expand All @@ -126,6 +128,8 @@
- warn: {lhs: "filter f x /= []", rhs: any f x}
- warn: {lhs: any identity, rhs: or}
- warn: {lhs: all identity, rhs: and}
- warn: {lhs: any (not . f) x, rhs: not (all f x), name: Hoist not}
- warn: {lhs: all (not . f) x, rhs: not (any f x), name: Hoist not}
- warn: {lhs: any ((==) a), rhs: elem a, note: ValidInstance Eq a}
- warn: {lhs: any (== a), rhs: elem a}
- warn: {lhs: any (a ==), rhs: elem a, note: ValidInstance Eq a}
Expand Down Expand Up @@ -174,6 +178,10 @@
- warn: {lhs: sequenceA_ (map f x), rhs: traverse_ f x}
- warn: {lhs: sequenceA_ (fmap f x), rhs: traverse_ f x}
- warn: {lhs: foldMap identiy, rhs: fold}
- warn: {lhs: fold (fmap f x), rhs: foldMap f x}
- warn: {lhs: fold (map f x), rhs: foldMap f x}
- warn: {lhs: foldMap f (fmap g x), rhs: foldMap (f . g) x}
- warn: {lhs: foldMap f (map g x), rhs: foldMap (f . g) x}

# BY

Expand Down
7 changes: 4 additions & 3 deletions stack-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ packages:
- archive: http://digitalassetsdk.bintray.com/ghc-lib/ghc-lib-8.8.1.20200122.tar.gz
sha256: "50d6942d35cef80a8159b4f593bca467e9186c7efcdbe010dfd2e654d90888bd"
- github: digital-asset/hlint
commit: "2de70183ba81d71faa67a339fc72f8fe86a2f6d1"
sha256: "3dff215c25e1e4afdd949930c483b5e56394a8091784da18766ae85492c7b370"
- ghc-lib-parser-ex-8.8.2
commit: "6782e9615d81e83428ab80ce68cd31e8b0a5a507"
sha256: "edcb0db6752e97b5d35f31df90eb5feb21a3ac8368f5c9e6857b343f5fde3849"
- ghc-lib-parser-ex-8.8.3.0
- haskell-src-exts-1.23.0
- bytestring-nums-0.3.6
- extra-1.6.18
- grpc-haskell-0.0.1.0
Expand Down

0 comments on commit a48b7b0

Please sign in to comment.