packages feed

hlint 1.9.33 → 1.9.34

raw patch · 3 files changed

+7/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGES.txt view
@@ -1,5 +1,8 @@ Changelog for HLint +1.9.34+    #154, fix some incorrect line numbers in literate Haskell+    #161, fix literate Haskell and CPP 1.9.33     #240, remove type-incorrect "on" hint     #234, warn about join seq
hlint.cabal view
@@ -1,7 +1,7 @@ cabal-version:      >= 1.8 build-type:         Simple name:               hlint-version:            1.9.33+version:            1.9.34 license:            BSD3 license-file:       LICENSE category:           Development
src/HSE/All.hs view
@@ -21,6 +21,8 @@ import Language.Preprocessor.Cpphs import qualified Data.Map as Map import System.IO+import Data.Functor+import Prelude   -- | Created with 'defaultParseFlags', used by 'parseModuleEx'.@@ -50,7 +52,7 @@ runCpp :: CppFlags -> FilePath -> String -> IO String runCpp NoCpp _ x = return x runCpp CppSimple _ x = return $ unlines [if "#" `isPrefixOf` trimStart x then "" else x | x <- lines x]-runCpp (Cpphs o) file x = runCpphs o file x+runCpp (Cpphs o) file x = drop 1 . dropWhile (/= '\n') <$> runCpphs o file x   ---------------------------------------------------------------------