haskell-formatter 2.0.1 → 2.0.2
raw patch · 2 files changed
+13/−13 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +10/−10
- haskell-formatter.cabal +3/−3
README.md view
@@ -10,19 +10,19 @@ Install it by running -```+```bash stack install haskell-formatter ``` or -```+```bash cabal new-install haskell-formatter ``` You are ready when -```+```bash haskell-formatter --help ``` @@ -34,26 +34,26 @@ Read source code from `Input.hs`, format it, and write it to `Output.hs` by -```+```bash haskell-formatter --input Input.hs --output Output.hs ``` If the input or output file is not given, it defaults to the corresponding standard stream. This allows commands like -```+```bash haskell-formatter < Input.hs ``` To format a file in-place, use the `--force` option as in -```+```bash # Warning: this overwrites the file `Code.hs`. haskell-formatter --force --input Code.hs --output Code.hs ``` For more help about the usage, call -```+```bash haskell-formatter --help ``` @@ -61,7 +61,7 @@ For a diff of how code in the current folder would be formatted, without actually changing anything, run -```+```bash find . -name '*.hs' -type f -print0 \ | xargs -0 -n 1 bash -c 'haskell-formatter < "$@" | diff -u "$@" -' -- ```@@ -70,7 +70,7 @@ To format any `*.hs` files in a folder `code/` or (recursively) in its subfolders, run -```+```bash # Warning: this overwrites files, so better back them up first. find code/ -name '*.hs' -type f -print0 \ | xargs -0 -I {} -n 1 haskell-formatter --force --input {} --output {}@@ -80,7 +80,7 @@ The formatting style can be configured with a file referred by the `--style` option. For instance, the call -```+```bash haskell-formatter --style my_style.yaml --input Input.hs --output Output.hs ```
haskell-formatter.cabal view
@@ -1,13 +1,13 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.31.1.+-- This file has been generated from package.yaml by hpack version 0.31.2. -- -- see: https://github.com/sol/hpack ----- hash: b081fce8a001c08bacb84dc6cef6a65f0501381baa20458eade7c36a12223491+-- hash: 2a3ff370b294ff45e9969b40e7fe03b3d4928324aaf898a53fe6abbf81ab4d38 name: haskell-formatter-version: 2.0.1+version: 2.0.2 synopsis: Haskell source code formatter description: The Haskell Formatter formats Haskell source code. It is strict in that it fundamentally rearranges code. category: Development