hlint 2.1.7 → 2.1.8
raw patch · 3 files changed
+5/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGES.txt +2/−0
- data/hlint.yaml +2/−2
- hlint.cabal +1/−1
CHANGES.txt view
@@ -1,5 +1,7 @@ Changelog for HLint (* = breaking change) +2.1.8, released 2018-07-06+ #509, remove incorrect suggestions around sequence/pure 2.1.7, released 2018-07-03 #483, don't break quasi quotes when suggesting const #404, remove the "Unnecessary hiding" hint introduced in #338
data/hlint.yaml view
@@ -389,7 +389,6 @@ - warn: {lhs: traverse_ f (map g x), rhs: traverse_ (f . g) x, name: Fuse traverse_/map} - warn: {lhs: mapM id, rhs: sequence} - warn: {lhs: mapM_ id, rhs: sequence_}- - warn: {lhs: sequence (return a), rhs: return <$> a} # APPLICATIVE / TRAVERSABLE @@ -403,7 +402,6 @@ - warn: {lhs: Just <$> a <|> pure Nothing, rhs: optional a} - hint: {lhs: m >>= pure . f, rhs: f <$> m} - hint: {lhs: pure . f =<< m, rhs: f <$> m}- - warn: {lhs: sequenceA (pure a), rhs: pure <$> a} # LIST COMP@@ -815,6 +813,8 @@ # yes = foldr (\ curr acc -> (+ 1) curr : acc) [] -- map (\ curr -> (+ 1) curr) # yes = foldr (\ curr acc -> curr + curr : acc) [] -- map (\ curr -> curr + curr) # no = foo $ (,) x $ do {this is a test; and another test}+# no = sequence (return x)+# no = sequenceA (pure a) # {-# LANGUAGE QuasiQuotes #-}; no = f (\url -> [hamlet|foo @{url}|]) # # import Prelude \
hlint.cabal view
@@ -1,7 +1,7 @@ cabal-version: >= 1.18 build-type: Simple name: hlint-version: 2.1.7+version: 2.1.8 license: BSD3 license-file: LICENSE category: Development