hlint 2.0.7 → 2.0.8
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 +2/−0
- hlint.cabal +1/−1
- src/HSE/All.hs +4/−1
CHANGES.txt view
@@ -1,5 +1,7 @@ Changelog for HLint +2.0.8+ #342, add back support for - to mean stdin 2.0.7 #340, fix for directory arguments in the .hlint.yaml 2.0.6
hlint.cabal view
@@ -1,7 +1,7 @@ cabal-version: >= 1.18 build-type: Simple name: hlint-version: 2.0.7+version: 2.0.8 license: BSD3 license-file: LICENSE category: Development
src/HSE/All.hs view
@@ -74,7 +74,10 @@ -- The filename @-@ is treated as @stdin@. Requires some flags (often 'defaultParseFlags'), the filename, and optionally the contents of that file. parseModuleEx :: ParseFlags -> FilePath -> Maybe String -> IO (Either ParseError (Module_, [Comment])) parseModuleEx flags file str = do- str <- maybe (readFileUTF8' file) return str+ str <- case str of+ Just x -> return x+ Nothing | file == "-" -> getContents+ | otherwise -> readFileUTF8' file str <- return $ fromMaybe str $ stripPrefix "\65279" str -- remove the BOM if it exists, see #130 ppstr <- runCpp (cppFlags flags) file str case parseFileContentsWithComments (mode flags) ppstr of