packages feed

stylish-haskell 0.5.6.1 → 0.5.7.0

raw patch · 2 files changed

+6/−5 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

src/Language/Haskell/Stylish/Parse.hs view
@@ -40,8 +40,9 @@ parseModule :: Extensions -> Maybe FilePath -> String -> Either String Module parseModule extraExts mfp string = do     -- Determine the extensions: those specified in the file and the extra ones-    let extraExts' = map H.classifyExtension extraExts-        fileExts   = fromMaybe [] $ H.readExtensions string+    let noBom      = dropBom string+        extraExts' = map H.classifyExtension extraExts+        fileExts   = fromMaybe [] $ H.readExtensions noBom         exts       = fileExts ++ extraExts'          -- Parsing options...@@ -50,9 +51,9 @@             {H.extensions = exts, H.fixities = Nothing}          -- Preprocessing-        string'  = dropBom $ (if H.CPP `elem` exts then unCpp else id) $ string+        noCpp    = if H.CPP `elem` exts then unCpp noBom else noBom -    case H.parseModuleWithComments mode string' of+    case H.parseModuleWithComments mode noCpp of         H.ParseOk md -> return md         err          -> throwError $             "Language.Haskell.Stylish.Parse.parseModule: could not parse " ++
stylish-haskell.cabal view
@@ -1,5 +1,5 @@ Name:          stylish-haskell-Version:       0.5.6.1+Version:       0.5.7.0 Synopsis:      Haskell code prettifier Homepage:      https://github.com/jaspervdj/stylish-haskell License:       BSD3