| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
| |
[dgit (9.10~bpo10+1) quilt-fixup]
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
v0.12.2.0
- 0.12.2.0 (2020-10-08)
* align: Add a new option for aligning only adjacent items (by 1Computer1)
* align: Add support for aligning MultiWayIf syntax (by 1Computer1)
* data: Fix some issues with record field padding
* module_header: Add separate_lists option
* imports: Respect separate_lists for (..) imports
* data: Make sorting deriving list optional (by Maxim Koltsov)
|
| | |
|
| |
| |
| |
| | |
Co-authored-by: 1computer1 <onecomputer00@gmail.com>
|
| | |
|
| | |
|
| |
| |
| | |
See #318 and #319
|
| | |
|
| |
| |
| |
| |
| | |
* Refactor UnicodeSyntax.hs
Co-authored-by: Jasper Van der Jeugt <jaspervdj@gmail.com>
|
| |
| |
| |
| | |
See #320
|
| |
| |
| |
| | |
Fixes #320
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Make sorting deriving list optional
Not everyone wants their typeclasses sorted.
* Remove redundant code
Co-authored-by: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com>
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
* This is the newest cabal version supported by stack
* Remove warning about missing Default-language field
* Remove warning regarding the License field
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
When some import line spans multuple lines, e.g. when import list is
long, stylish-haskell breaks a group at this line, leading to bad
result.
This commits makes sure that import groups are recognized solely by
empty lines.
|
| |
| |
| | |
Fixes #184
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This patch swaps out the parsing library from `haskell-src-exts` to
`ghc-lib-parser`, which gives us better compatibility with GHC.
Because almost every module heavily used the Haskell AST provided by
`haskell-src-exts`, this was a huge effort and it would not have been possible
without Felix Mulder doing an initial port, GSoC student Beatrice Vergani
porting several other steps, and Łukasz Gołębiewski and Paweł Szulc who helped
me finish up things in the home stretch.
I've generally tried to keep styling 100% compatible with what was there before,
but some issues may have unintentionally slipped in so please report those.
This introduces one new import styling contributed by Felix: when wrapping
import lists over multiple lines, you can repeat the module name, e.g.:
import Control.Monad.Except as X (ExceptT (..), MonadError (..), liftEither)
import Control.Monad.Except as X (runExceptT, withExceptT)
This is activated by using `import_align: repeat`.
Secondly, a new Step was added, `module_header`, which formats the export list
of a module, including the trailing `where` clause. Details for this new step
can be found in the `data/stylish-haskell.yaml`.
Co-Authored-By: Beatrice Vergani <beatrice.vergani11@gmail.com>
Co-Authored-By: Paweł Szulc <paul.szulc@gmail.com>
Co-Authored-By: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com>
Co-Authored-By: Felix Mulder <felix.mulder@klarna.com>
|
| | |
|
| |
| |
| | |
They are not needed on newer GHC.
|
| |
| |
| | |
Builds fine and all tests pass here.
|
| | |
|
| | |
|
| |
| |
| | |
The bounds of Cabal were not updated in 2dd6fbd669e3501d5d4783dfa2d9f9ba3026ea1b
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
[dgit (9.10~bpo10+1) quilt-fixup]
|
| | |
|
| | |
|
|\|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
v0.11.0.0
- 0.11.0.0 (2020-02-24)
* Disable record formatting by default
* Allow more customization for record formatting (by Maxim Koltsov)
* Disable formatting of data types without records (by Maxim Koltsov)
* Add `-r` flag to recursively find Haskell files (by Akos Marton)
|
| | |
|
| | |
|
| | |
|
| | |
|