packages feed

hlint 2.0 → 2.0.1

raw patch · 3 files changed

+11/−3 lines, 3 filesdep ~cpphsPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: cpphs

API changes (from Hackage documentation)

Files

CHANGES.txt view
@@ -1,5 +1,7 @@ Changelog for HLint +2.0.1+    #320, still read ./HLint.hs if it exists 2.0     #319, add a hint \x -> f <$> g x ==> fmap f . g     Don't say how many hints were ignored
hlint.cabal view
@@ -1,7 +1,7 @@ cabal-version:      >= 1.18 build-type:         Simple name:               hlint-version:            2.0+version:            2.0.1 license:            BSD3 license-file:       LICENSE category:           Development@@ -27,7 +27,7 @@ extra-doc-files:     README.md     CHANGES.txt-tested-with:        GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3+tested-with:        GHC==8.0.2, GHC==7.10.3, GHC==7.8.4, GHC==7.6.3, GHC==7.4.2  source-repository head     type:     git@@ -56,6 +56,10 @@         ansi-terminal >= 0.6.2,         extra >= 1.4.9,         refact >= 0.3++    -- Workaround for https://github.com/malcolmwallace/cpphs/issues/9+    if impl(ghc < 7.6)+        build-depends: cpphs < 1.20.4      if flag(gpl)         build-depends: hscolour >= 1.21
src/CmdLine.hs view
@@ -204,7 +204,9 @@         curdir <- getCurrentDirectory         home <- getHomeDirectory         b <- doesFileExist ".hlint.yaml"-        implicit <- findM doesFileExist $ map (</> ".hlint.yaml") $ ancestors curdir ++ [home]+        implicit <- findM doesFileExist $+            "HLint.hs" : -- the default in HLint 1.*+            map (</> ".hlint.yaml") (ancestors curdir ++ [home]) -- to match Stylish Haskell         return $ explicit1 ++ maybeToList implicit ++ explicit2     where         ancestors = init . map joinPath . reverse . inits . splitPath