@@ -22,7 +22,7 @@ the following goals in mind:
22* That formatting style aims to result in minimal diffs while still
22* That formatting style aims to result in minimal diffs while still
23 remaining very close to “conventional” Haskell formatting people use.
23 remaining very close to “conventional” Haskell formatting people use.
24* Choose a style compatible with modern dialects of Haskell. As new Haskell
24* Choose a style compatible with modern dialects of Haskell. As new Haskell
25− extensions enter broad use, we may change the style to accommodate them.
25+ extensions enter broad use, we may change the style to accomodate them.
26* Idempotence: formatting already formatted code doesn't change it.
26* Idempotence: formatting already formatted code doesn't change it.
27* Be well-tested and robust to the point that it can be used in large
27* Be well-tested and robust to the point that it can be used in large
28 projects without exposing unfortunate, disappointing bugs here and there.
28 projects without exposing unfortunate, disappointing bugs here and there.
@@ -49,8 +49,8 @@ resolver: lts-16.0
52−$ stack build # to build
52+$ stack build -- to build
53−$ stack install # to install
53+$ stack install -- to install
56To use Ormolu directly from GitHub with Nix, this snippet may come in handy:
56To use Ormolu directly from GitHub with Nix, this snippet may come in handy:
@@ -130,6 +130,14 @@ independent top-level definitions.
130 criterion than just being valid Haskell modules.
130 criterion than just being valid Haskell modules.
131* Various minor idempotence issues, most of them are related to comments.
131* Various minor idempotence issues, most of them are related to comments.
133+## Editor integration
135+We know of the following editor integrations:
137+* [Emacs][emacs-package]
138+* [VS Code][vs-code-plugin]
139+* vim: [neoformat][neoformat], [vim-ormolu][vim-ormolu]
133## Running on Hackage
141## Running on Hackage
135It's possible to try Ormolu on arbitrary packages from Hackage. For that
143It's possible to try Ormolu on arbitrary packages from Hackage. For that
@@ -144,22 +152,6 @@ also contain formatted `.hs` files for inspection and original inputs with
144`.hs-original` extension (those are with CPP dropped, exactly what is fed
152`.hs-original` extension (those are with CPP dropped, exactly what is fed
145into Ormolu).
153into Ormolu).
147−## Editor integration
149−We know of the following editor integrations:
151−* [Emacs][emacs-package]
152−* [VS Code][vs-code-plugin]
153−* vim: [neoformat][neoformat], [vim-ormolu][vim-ormolu]
157−To install Ormolu on Arch Linux, one can use [the package on AUR][aur]:
163## Contributing
155## Contributing
165See [CONTRIBUTING.md][contributing].
157See [CONTRIBUTING.md][contributing].
@@ -178,4 +170,3 @@ Copyright © 2018–present Tweag I/O
178[vs-code-plugin]: https://marketplace.visualstudio.com/items?itemName=sjurmillidahl.ormolu-vscode
170[vs-code-plugin]: https://marketplace.visualstudio.com/items?itemName=sjurmillidahl.ormolu-vscode
179[vim-ormolu]: https://github.com/sdiehl/vim-ormolu
171[vim-ormolu]: https://github.com/sdiehl/vim-ormolu
180[neoformat]: https://github.com/sbdchd/neoformat
172[neoformat]: https://github.com/sbdchd/neoformat
181−[aur]: https://aur.archlinux.org/packages/ormolu