summaryrefslogtreecommitdiffhomepage
path: root/tests
Commit message (Collapse)AuthorAge
* Correct a typo in Step/Data/Tests.hs (#272)Felix Yan2020-02-18
|
* Introduce nicer style for records (#266)Maxim Koltsov2020-02-17
|
* Add -r flag to recursively find Haskell filesAkos Marton2020-02-15
|
* Disable formatting of data types without records (#265)Maxim Koltsov2020-02-02
|
* Small test tweaksJasper Van der Jeugt2020-01-26
| | | | * Use `withTestDirTree` in StylishSpec * Move StylishSpec module
* Expose "format" function in Sylish.hs (#259)Łukasz Gołębiewski2020-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 Szulc2020-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łębiewski2020-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 wrappingChris Martin2020-01-18
|
* Make language extension prefix configurableFlavio Corpa2019-11-20
|
* Read extensions from cabal fileGeorgy Lukyanov2019-10-28
|
* Respect page breaks alone in a lineChris Perivolaropoulos2019-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_alignRupert Horlick2019-06-12
|
* Add new step to squash multiple spaces between some elementsMartin Huschenbett2018-05-01
|
* Support alignment of cases with a single guardJasper Van der Jeugt2018-04-26
|
* Avoid unpaired parenthesis when import doesn't specify any itemsMatthew Kennerly2017-11-28
| | | Fix #185
* Remove shebang lines at the beginning of fileVaibhav Sagar2017-08-23
|
* Add `imports.list_same_align` optionYuriy Syrovetskiy2017-06-19
|
* Add space_surround option to import stylingLinus Arver2017-05-09
|
* Take package imports into account when prettifying importsArtyom Kazak2017-04-24
| | | Fixes #106
* Deduplicate import specs (#165)Artyom Kazak2017-04-22
| | | Fixes #163
* Don't leave #-} hangingArtyom2017-04-17
| | | | Fixes #154
* Remove MagicHash from whitelisted extensions (#160)Artyom Kazak2017-04-15
| | | Fixes #159.
* reduce unnecessary spacesMoritz Drexl2016-12-28
|
* keep `safe` and `{-# SOURCE #-}` import annotationsMoritz Drexl2016-12-13
|
* Remove XmlSyntax from whitelisted extensionsJasper Van der Jeugt2016-08-28
|
* Export Import options & add defaultJasper Van der Jeugt2016-08-23
|
* list_padding: module_nameOleg Grenrus2016-08-03
|
* Special setting for empty import listsOleg Grenrus2016-08-01
|
* Move records step into simple_alignJasper Van der Jeugt2016-07-23
|
* Move Cases step to SimpleAlignJasper Van der Jeugt2016-07-23
|
* Add a set of default language extensions for parsingLangston Barrett2016-07-07
| | | | | See the comment for a detailed explanation. Fixes jaspervdj/stylish-haskell#117
* Simple alignment for top-level casesJasper Van der Jeugt2016-07-03
|
* Add alignment for some case expressionsJasper Van der Jeugt2016-07-03
|
* Record alignment takes max columns into accountJasper Van der Jeugt2016-07-03
|
* Remove shebang from input before attempting to extract extension pragmas.Mathew Mills2016-04-27
|
* New import list optionOndřej Janošík2015-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.
* Sorting of import sub-listsOndřej Janošík2015-09-21
|
* Separate lists option for importsOndřej Janošík2015-09-10
|
* Align option for LanguagePragmasOndřej Janošík2015-09-10
|
* Fixed invalid paddingOndřej Janošík2015-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 longOndřej Janošík2015-07-09
|
* Aligned lists with rest of fileOndřej Janošík2015-07-09
|
* Test cases for import list alignmentsOndřej Janošík2015-07-09
|
* Updated testsOndřej Janošík2015-07-09
|
* Slightly refactor record alignmentJasper Van der Jeugt2015-04-19
|
* Add support for shebang at start of fileJasper Van der Jeugt2015-04-19
| | | | Fixes #86
* Fix language pragma compact_line testJasper Van der Jeugt2014-03-25
|
* Run test case 6 for language pragmasJasper Van der Jeugt2014-03-09
|
* Merge pull request #34 from konn/masterJasper Van der Jeugt2013-12-18
|\ | | | | Added new pragma style `line'