Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Use ghc-lib-parser rather than haskell-src-exts | Jasper Van der Jeugt | 2020-10-02 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> | ||
* | Add -r flag to recursively find Haskell files | Akos Marton | 2020-02-15 |
| | |||
* | Use file-embed for default configuration | Jasper Van der Jeugt | 2017-12-26 |
| | |||
* | On errors, show error and exit with code 1 | Jasper Van der Jeugt | 2017-01-07 |
| | | | | See #146 | ||
* | Set newline format to `stdout` too | Svyatoslav Gryaznov | 2016-07-06 |
| | |||
* | Do not change input newline format when writing file | Svyatoslav Gryaznov | 2016-07-06 |
| | |||
* | Add newline format option | Svyatoslav Gryaznov | 2016-07-05 |
| | |||
* | Add --version option | Ondra Pelech | 2016-06-26 |
| | | | | fixes https://github.com/jaspervdj/stylish-haskell/issues/112 | ||
* | Use --utf8 by default, use optparse-applicative | Jasper Van der Jeugt | 2016-06-10 |
| | |||
* | Add an --utf8 flag | Jasper Van der Jeugt | 2016-06-01 |
| | |||
* | Fix warnings | Jasper Van der Jeugt | 2016-02-01 |
| | |||
* | Use underscores in the yaml options | Jasper Van der Jeugt | 2016-02-01 |
| | |||
* | Merge branch 'master' of https://github.com/JOndra91/stylish-haskell into ↵ | Jasper Van der Jeugt | 2016-02-01 |
|\ | | | | | | | JOndra91-master | ||
| * | New import list option | Ondřej Janošík | 2015-09-21 |
| | | | | | | | | | | new line-multiline: Import list will start on new line when it's short enough to fit to single line. Otherwise it'll be multiline. | ||
| * | Fixed some hlint warnings | Ondřej Janošík | 2015-09-21 |
| | | |||
| * | Sorting of import sub-lists | Ondřej Janošík | 2015-09-21 |
| | | |||
| * | Separate lists option for imports | Ondřej Janošík | 2015-09-10 |
| | | |||
| * | Align option for LanguagePragmas | Ondřej Janošík | 2015-09-10 |
| | | |||
| * | Improved long line detection | Ondřej Janošík | 2015-07-20 |
| | | |||
| * | Fixed invalid padding | Ondřej Janošík | 2015-07-10 |
| | | | | | | | | | | Import alias is no longer padded when align is set to 'none' and long_list_align is set to 'new line' or 'multiline'. | ||
| * | Added option to break line with inline style only when import is too long | Ondřej Janošík | 2015-07-09 |
| | | |||
| * | Fixed import alignments to pass tests | Ondřej Janošík | 2015-07-09 |
| | | |||
| * | Fix for wrapping when max collumn count is set to small number | Ondřej Janošík | 2015-07-09 |
| | | | | | | | | | | | | Wrapper no longer gives up when max collumn count is set to small number and properly wraps items on new lines instead of putting everything on the same line. | ||
| * | Removed old commented code | Ondřej Janošík | 2015-07-09 |
| | | |||
| * | Fix for imports with only instances | Ondřej Janošík | 2015-07-09 |
| | | |||
| * | Ensured compatibility with original formatting | Ondřej Janošík | 2015-07-09 |
| | | |||
| * | Added list_padding option | Ondřej Janošík | 2015-07-09 |
| | | |||
| * | Align options for imports | Ondřej Janošík | 2015-07-08 |
| | | |||
* | | Bump stylish-haskell to 1.17.00.5.14.4 | Jasper Van der Jeugt | 2015-11-20 |
|/ | |||
* | Slightly refactor record alignment | Jasper Van der Jeugt | 2015-04-19 |
| | |||
* | Fix issue with shebang code0.5.13.0 | Jasper Van der Jeugt | 2015-04-19 |
| | |||
* | Add support for shebang at start of file | Jasper Van der Jeugt | 2015-04-19 |
| | | | | Fixes #86 | ||
* | Fix warnings | Jasper Van der Jeugt | 2015-01-23 |
| | |||
* | Fix code that was confusing GHC 7.10 | Jasper Van der Jeugt | 2015-01-16 |
| | |||
* | Fix for haskell-src-exts 0.16 release | Leonid Onokhov | 2014-09-15 |
| | | | | | Unfortunately makes it incompatible with earlier haskell-src-exts package versions | ||
* | Make UTF read file mode default (fixes Windows file reading behavior) | danbst | 2014-04-14 |
| | |||
* | Small fixes for #34 | Jasper Van der Jeugt | 2013-12-18 |
| | |||
* | Merge pull request #34 from konn/master | Jasper Van der Jeugt | 2013-12-18 |
|\ | | | | | Added new pragma style `line' | ||
| * | * Rewrite function using `compact'. | Hiromi Ishii | 2013-04-19 |
| | | | | | | | | | | | | * Rename `compact' to `compact_line'. * Added the description for new style in .stylish-haskell.yml * Added test case for `compact_line'. | ||
| * | * Added `line' style for pretty language pragma. | Hiromi Ishii | 2013-04-02 |
| |\ | | | | | | | | | | | | | Conflicts: src/Language/Haskell/Stylish/Step/LanguagePragmas.hs | ||
| * | | Added `line' language pragma style. It is similar to `compact` but put "{-# ↵ | Hiromi Ishii | 2012-09-16 |
| | | | | | | | | | | | | LANGUAGE " for each line instead of padding. | ||
* | | | Bump HSE dependency to 1.14.*0.5.8.0 | Jasper Van der Jeugt | 2013-08-20 |
| | | | |||
* | | | Take Haskell2010 extension into account | Jasper Van der Jeugt | 2013-08-05 |
| | | | | | | | | | | | | Closes #36 | ||
* | | | Strip BOM *before* reading language extensions | Jasper Van der Jeugt | 2013-08-03 |
| |/ |/| | |||
* | | Be careful with multiline CPP | Jasper Van der Jeugt | 2013-02-07 |
| | | | | | | | | Closes #31 | ||
* | | Deal with pragmas in groups0.5.5.0 | Jasper Van der Jeugt | 2012-12-05 |
| | | | | | | | | Closes #26 | ||
* | | Make groupAdjacent a bit more abstract | Jasper Van der Jeugt | 2012-12-03 |
| | | |||
* | | Use classifyExtension to parse extensions | Jasper Van der Jeugt | 2012-12-03 |
| | | | | | | | | See #24 | ||
* | | Rewrite config file searching a bit | Jasper Van der Jeugt | 2012-11-05 |
| | | | | | | | | See #21 | ||
* | | Search for the config file in the project root. | Mikhail Glushenkov | 2012-11-05 |
| | | | | | | | | | | | | | | Project root is defined as the nearest ancestor directory that contains a .stylish-haskell.yaml file (the same logic that Git uses for finding the .git directory). Project root is searched after the current directory, but before the home directory. |