stylish-haskell 0.6.5.0 → 0.7.0.0
raw patch · 3 files changed
+20/−11 lines, 3 filesdep ~aesondep ~directorydep ~haskell-src-extsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: aeson, directory, haskell-src-exts
API changes (from Hackage documentation)
Files
- CHANGELOG +6/−0
- src/Main.hs +4/−1
- stylish-haskell.cabal +10/−10
CHANGELOG view
@@ -1,5 +1,11 @@ # CHANGELOG +- 0.7.0.0+ * If there's parse errors, show these and exit with code 1+ * Bump `aeson` to 1.1+ * Bump `directory` to 1.3+ * Bump `haskell-src-exts` to 1.19+ - 0.6.5.0 * Fix issue with unit records (by Mizunashi Mana) * Bump `HUnit` to 1.5
src/Main.hs view
@@ -10,6 +10,7 @@ import Data.Version (showVersion) import qualified Options.Applicative as OA import qualified Paths_stylish_haskell+import System.Exit (exitFailure) import qualified System.IO as IO import qualified System.IO.Strict as IO.Strict @@ -117,8 +118,10 @@ let result = runSteps (configLanguageExtensions conf) mfp (configSteps conf) $ lines contents case result of- Left err -> IO.hPutStrLn IO.stderr err >> write contents contents Right ok -> write contents $ unlines ok+ Left err -> do+ IO.hPutStrLn IO.stderr err+ exitFailure where write old new = case mfp of Nothing -> putStrNewline new
stylish-haskell.cabal view
@@ -1,5 +1,5 @@ Name: stylish-haskell-Version: 0.6.5.0+Version: 0.7.0.0 Synopsis: Haskell code prettifier Homepage: https://github.com/jaspervdj/stylish-haskell License: BSD3@@ -49,13 +49,13 @@ Paths_stylish_haskell Build-depends:- aeson >= 0.6 && < 1.1,+ aeson >= 0.6 && < 1.2, base >= 4.8 && < 5, bytestring >= 0.9 && < 0.11, containers >= 0.3 && < 0.6,- directory >= 1.1 && < 1.3,+ directory >= 1.1 && < 1.4, filepath >= 1.1 && < 1.5,- haskell-src-exts >= 1.18 && < 1.19,+ haskell-src-exts >= 1.18 && < 1.20, mtl >= 2.0 && < 2.3, syb >= 0.3 && < 0.7, yaml >= 0.7 && < 0.9@@ -70,13 +70,13 @@ strict >= 0.3 && < 0.4, optparse-applicative >= 0.12 && < 0.14, -- Copied from regular dependencies...- aeson >= 0.6 && < 1.1,+ aeson >= 0.6 && < 1.2, base >= 4.8 && < 5, bytestring >= 0.9 && < 0.11, containers >= 0.3 && < 0.6,- directory >= 1.1 && < 1.3,+ directory >= 1.1 && < 1.4, filepath >= 1.1 && < 1.5,- haskell-src-exts >= 1.18 && < 1.19,+ haskell-src-exts >= 1.18 && < 1.20, mtl >= 2.0 && < 2.3, syb >= 0.3 && < 0.7, yaml >= 0.7 && < 0.9@@ -116,13 +116,13 @@ test-framework >= 0.4 && < 0.9, test-framework-hunit >= 0.2 && < 0.4, -- Copied from regular dependencies...- aeson >= 0.6 && < 1.1,+ aeson >= 0.6 && < 1.2, base >= 4.8 && < 5, bytestring >= 0.9 && < 0.11, containers >= 0.3 && < 0.6,- directory >= 1.1 && < 1.3,+ directory >= 1.1 && < 1.4, filepath >= 1.1 && < 1.5,- haskell-src-exts >= 1.18 && < 1.19,+ haskell-src-exts >= 1.18 && < 1.20, mtl >= 2.0 && < 2.3, syb >= 0.3 && < 0.7, yaml >= 0.7 && < 0.9