Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Introduce nicer style for records (#266) | Maxim Koltsov | 2020-02-17 |
| | |||
* | Add -r flag to recursively find Haskell files | Akos Marton | 2020-02-15 |
| | |||
* | Disable formatting of data types without records (#265) | Maxim Koltsov | 2020-02-02 |
| | |||
* | Switch to HsYAML library | vijayphoenix | 2020-01-26 |
| | |||
* | Expose "format" function in Sylish.hs (#259) | Łukasz Gołębiewski | 2020-01-26 |
| | | | | | | | | | | | | | | * Expose "format" function in Sylish.hs It's going to be needed for the haskell-ide integration * Update tests/Language/Haskell/StylishSpec.hs Co-Authored-By: Jasper Van der Jeugt <jaspervdj@gmail.com> * Remove empty line Co-authored-by: Jasper Van der Jeugt <jaspervdj@gmail.com> | ||
* | Fix records with comments (#257) | Pawel Szulc | 2020-01-24 |
| | | | | | | | | | | * Format records where comments are in the same line as the field name * Fix records format, records with comments will now be formatted * Fix formatting of comments below Co-authored-by: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com> | ||
* | Support for records formatting (#256) | Łukasz Gołębiewski | 2020-01-23 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial test describing simplest scenario for Data step Co-authored-by: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com> * [sanity-check] Delete data defs * Extract changeDecl Co-authored-by: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com> * First green test :-) * Cover case where there are more then one field in data type declaration Co-authored-by: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com> * Add case03 where a type variable is present * Add case04 - multiple declarations * Make case04 pass * Extend tests with case05 Co-authored-by: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com> * Add pending case06 Co-authored-by: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com> * Fix case 06 Co-authored-by: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com> * Add case07 Co-authored-by: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com> * Add second phantom case * Add records to config * Make indent size configurable for records Co-authored-by: Paweł Szulc <paul.szulc@gmail.com> * Fix warnings in Data.hs * Process derivings during record formatting Co-authored-by: Paweł Szulc <paul.szulc@gmail.com> * Do not format when context is present Co-authored-by: Paweł Szulc <paul.szulc@gmail.com> * Add case 11 - deriving with DerivingStrategies * Bugfix: do not remove empty data declarations Co-authored-by: Paweł Szulc <paul.szulc@gmail.com> * Update README example with ability to format records * Add case12 (Point) * Fix case 12 * Factor out processName * Apply hlint suggestions * Extract constructors helper function * Make 'indent' global * Remove unused Stylish.records method * Fix Config formatting in Config.hs * Extract processConstructor function Co-authored-by: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com> * Refactor datas function Co-authored-by: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com> * Include comments with AST. Two tests are still failing... * Fix cases 15 and 16 * Do not format records when comments within Co-authored-by: Łukasz Gołębiewski <lukasz.golebiewski@gmail.com> * Clean-up Data.hs * Refactor Data.hs Co-authored-by: Pawel Szulc <paul.szulc@gmail.com> | ||
* | Allow setting "columns: null" to disable all wrapping | Chris Martin | 2020-01-18 |
| | |||
* | Make language extension prefix configurable | Flavio Corpa | 2019-11-20 |
| | |||
* | Add a cabal option to control cabal parsing | Jasper Van der Jeugt | 2019-10-29 |
| | |||
* | Read extensions from cabal file | Georgy Lukyanov | 2019-10-28 |
| | |||
* | Respect page breaks alone in a line | Chris Perivolaropoulos | 2019-06-12 |
| | | | | | | Page breaks are an old but effective way of bookmarking a file. They usually are single character lines. Stylish removes them as whitespace characters, and they are from the compiler's point of view but not from an editor's perspective. | ||
* | Add with_module_name option to list_align | Rupert Horlick | 2019-06-12 |
| | |||
* | Update bounds to support >= lts-2.5 (#227) | Brandon Chinn | 2019-01-02 |
| | |||
* | Add new step to squash multiple spaces between some elements | Martin Huschenbett | 2018-05-01 |
| | |||
* | Support alignment of cases with a single guard | Jasper Van der Jeugt | 2018-04-26 |
| | |||
* | Support GHC 8.4.1 by adding instance Semigroup ImportPortion | George Wilson | 2018-04-26 |
| | |||
* | Use file-embed for default configuration | Jasper Van der Jeugt | 2017-12-26 |
| | |||
* | Add platform specific configuration paths | Jan Tojnar | 2017-12-26 |
| | |||
* | Avoid unpaired parenthesis when import doesn't specify any items | Matthew Kennerly | 2017-11-28 |
| | | | Fix #185 | ||
* | Remove shebang lines at the beginning of file | Vaibhav Sagar | 2017-08-23 |
| | |||
* | Rename list_same_align to pad_module_names | Jasper Van der Jeugt | 2017-06-19 |
| | |||
* | Add `imports.list_same_align` option | Yuriy Syrovetskiy | 2017-06-19 |
| | |||
* | Add space_surround option to import styling | Linus Arver | 2017-05-09 |
| | |||
* | Take package imports into account when prettifying imports | Artyom Kazak | 2017-04-24 |
| | | | Fixes #106 | ||
* | Deduplicate import specs (#165) | Artyom Kazak | 2017-04-22 |
| | | | Fixes #163 | ||
* | Don't leave #-} hanging | Artyom | 2017-04-17 |
| | | | | Fixes #154 | ||
* | Remove MagicHash from whitelisted extensions (#160) | Artyom Kazak | 2017-04-15 |
| | | | Fixes #159. | ||
* | reduce unnecessary spaces | Moritz Drexl | 2016-12-28 |
| | |||
* | keep `safe` and `{-# SOURCE #-}` import annotations | Moritz Drexl | 2016-12-13 |
| | |||
* | Add a guard for maximum error case | Mizunashi Mana | 2016-11-05 |
| | |||
* | Remove XmlSyntax from whitelisted extensions | Jasper Van der Jeugt | 2016-08-28 |
| | |||
* | Export Import options & add default | Jasper Van der Jeugt | 2016-08-23 |
| | |||
* | list_padding: module_name | Oleg Grenrus | 2016-08-03 |
| | |||
* | Special setting for empty import lists | Oleg Grenrus | 2016-08-01 |
| | |||
* | Bump haskell-src-exts to 1.18 | Jasper Van der Jeugt | 2016-08-01 |
| | |||
* | Fix line patching issue in Editor | Jasper Van der Jeugt | 2016-07-24 |
| | |||
* | Move records step into simple_align | Jasper Van der Jeugt | 2016-07-23 |
| | |||
* | Move Cases step to SimpleAlign | Jasper Van der Jeugt | 2016-07-23 |
| | |||
* | Add a set of default language extensions for parsing | Langston Barrett | 2016-07-07 |
| | | | | | See the comment for a detailed explanation. Fixes jaspervdj/stylish-haskell#117 | ||
* | Merge pull request #116 from nightuser/newlineformat | Jasper Van der Jeugt | 2016-07-07 |
|\ | | | | | Add newline format option | ||
| * | Add newline format option | Svyatoslav Gryaznov | 2016-07-05 |
| | | |||
* | | Fix error in overlapping blocks | Jasper Van der Jeugt | 2016-07-05 |
| | | |||
* | | Simple alignment for top-level cases | Jasper Van der Jeugt | 2016-07-03 |
| | | |||
* | | Add alignment for some case expressions | Jasper Van der Jeugt | 2016-07-03 |
| | | |||
* | | Put Align in a separate helper module | Jasper Van der Jeugt | 2016-07-03 |
| | | |||
* | | Record alignment takes max columns into account | Jasper Van der Jeugt | 2016-07-03 |
|/ | |||
* | add more symbols from UnicodeSyntax | Langston Barrett | 2016-07-02 |
| | |||
* | Remove shebang from input before attempting to extract extension pragmas. | Mathew Mills | 2016-04-27 |
| | |||
* | Fail if default configuration file is not found | Jasper Van der Jeugt | 2016-03-28 |
| | | | | Fixes #99 |