packages feed

stylish-haskell 0.9.2.0 → 0.9.2.1

raw patch · 4 files changed

+36/−13 lines, 4 filesdep ~aesondep ~containersdep ~yaml

Dependency ranges changed: aeson, containers, yaml

Files

CHANGELOG view
@@ -1,5 +1,10 @@ # CHANGELOG +- 0.9.2.1 (2019-01-02)+    * Bump `aeson` to 1.4+    * Bump `yaml` to 0.11+    * Bump `containers` to 0.6+ - 0.9.2.0 (2018-05-01)     * Support alignment of case expressions with a single guard     * Add a new step to squash multiple spaces between some elements (by Martin
README.markdown view
@@ -124,6 +124,16 @@  and then use `gq`. +Alternatively, [vim-autoformat] supports stylish-haskell. To have it automatically reformat the files on save, add to your vimrc:++```vim+autocmd BufWrite *.hs :Autoformat+" Don't automatically indent on save, since vim's autoindent for haskell is buggy+autocmd FileType haskell let b:autoformat_autoindent=0+```++[vim-autoformat]: https://github.com/Chiel92/vim-autoformat+ There is also the [vim-stylish-haskell] plugin, which runs stylish-haskell automatically when you save a Haskell file. @@ -148,6 +158,13 @@  [ide-haskell]: https://atom.io/packages/ide-haskell [atom-beautify]: Https://atom.io/packages/atom-beautify++Visual Studio Code integration+------------------------------++[stylish-haskell-vscode] for VSCode supports `stylish-haskell`.++[stylish-haskell-vscode]: https://github.com/vigoo/stylish-haskell-vscode  Using with Continuous Integration ---------------------------------
lib/Language/Haskell/Stylish/Config.hs view
@@ -22,7 +22,8 @@ import           Data.Map                                         (Map) import qualified Data.Map                                         as M import           Data.Maybe                                       (fromMaybe)-import           Data.Yaml                                        (decodeEither)+import           Data.Yaml                                        (decodeEither',+                                                                   prettyPrintParseException) import           System.Directory import           System.FilePath                                  (joinPath,                                                                    splitPath,@@ -103,9 +104,9 @@     mbFp <- configFilePath verbose userSpecified     verbose $ "Loading configuration at " ++ fromMaybe "<embedded>" mbFp     bytes <- maybe (return defaultConfigBytes) B.readFile mbFp-    case decodeEither bytes of+    case decodeEither' bytes of         Left err     -> error $-            "Language.Haskell.Stylish.Config.loadConfig: " ++ err+            "Language.Haskell.Stylish.Config.loadConfig: " ++ prettyPrintParseException err         Right config -> return config  
stylish-haskell.cabal view
@@ -1,5 +1,5 @@ Name:          stylish-haskell-Version:       0.9.2.0+Version:       0.9.2.1 Synopsis:      Haskell code prettifier Homepage:      https://github.com/jaspervdj/stylish-haskell License:       BSD3@@ -49,10 +49,10 @@     Paths_stylish_haskell    Build-depends:-    aeson            >= 0.6    && < 1.4,+    aeson            >= 0.6    && < 1.5,     base             >= 4.8    && < 5,     bytestring       >= 0.9    && < 0.11,-    containers       >= 0.3    && < 0.6,+    containers       >= 0.3    && < 0.7,     directory        >= 1.2.3  && < 1.4,     filepath         >= 1.1    && < 1.5,     file-embed       >= 0.0.10 && < 0.1,@@ -60,7 +60,7 @@     mtl              >= 2.0    && < 2.3,     semigroups       >= 0.18   && < 0.19,     syb              >= 0.3    && < 0.8,-    yaml             >= 0.7    && < 0.9+    yaml             >= 0.8.11 && < 0.12  Executable stylish-haskell   Ghc-options:    -Wall@@ -72,17 +72,17 @@     strict               >= 0.3  && < 0.4,     optparse-applicative >= 0.12 && < 0.15,     -- Copied from regular dependencies...-    aeson            >= 0.6    && < 1.4,+    aeson            >= 0.6    && < 1.5,     base             >= 4.8    && < 5,     bytestring       >= 0.9    && < 0.11,-    containers       >= 0.3    && < 0.6,+    containers       >= 0.3    && < 0.7,     directory        >= 1.2.3  && < 1.4,     filepath         >= 1.1    && < 1.5,     file-embed       >= 0.0.10 && < 0.1,     haskell-src-exts >= 1.18   && < 1.21,     mtl              >= 2.0    && < 2.3,     syb              >= 0.3    && < 0.8,-    yaml             >= 0.7    && < 0.9+    yaml             >= 0.8.11 && < 0.12  Test-suite stylish-haskell-tests   Ghc-options:    -Wall@@ -121,17 +121,17 @@     test-framework       >= 0.4 && < 0.9,     test-framework-hunit >= 0.2 && < 0.4,     -- Copied from regular dependencies...-    aeson            >= 0.6    && < 1.4,+    aeson            >= 0.6    && < 1.5,     base             >= 4.8    && < 5,     bytestring       >= 0.9    && < 0.11,-    containers       >= 0.3    && < 0.6,+    containers       >= 0.3    && < 0.7,     directory        >= 1.2.3  && < 1.4,     filepath         >= 1.1    && < 1.5,     file-embed       >= 0.0.10 && < 0.1,     haskell-src-exts >= 1.18   && < 1.21,     mtl              >= 2.0    && < 2.3,     syb              >= 0.3    && < 0.8,-    yaml             >= 0.7    && < 0.9+    yaml             >= 0.8.11 && < 0.12  Source-repository head   Type:     git