summaryrefslogtreecommitdiffhomepage
path: root/stylish-haskell.cabal
Commit message (Collapse)AuthorAge
* Bump version to 0.12.2.0v0.12.2.0Jasper Van der Jeugt2020-10-08
|
* Fix Autogen-modules issue in cabal filev0.12.1.0Jasper Van der Jeugt2020-10-05
|
* Bump version to 0.12.1.0Jasper Van der Jeugt2020-10-05
|
* Bump cabal version to 2.4Łukasz Gołębiewski2020-10-05
| | | | | * This is the newest cabal version supported by stack * Remove warning about missing Default-language field * Remove warning regarding the License field
* Bump version to 0.12.0.0v0.12.0.0Jasper Van der Jeugt2020-10-02
|
* Use ghc-lib-parser rather than haskell-src-extsJasper Van der Jeugt2020-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>
* Depend on semigroups only on GHC < 8.0 (#296)Felix Yan2020-08-24
| | | They are not needed on newer GHC.
* Allow strict 0.4Felix Yan2020-08-24
| | | Builds fine and all tests pass here.
* Allow Cabal 3.2 for test suiteFelix Yan2020-08-06
| | | The bounds of Cabal were not updated in 2dd6fbd669e3501d5d4783dfa2d9f9ba3026ea1b
* Bump version to 0.11.0.3v0.11.0.3Jasper Van der Jeugt2020-08-02
|
* Set default-language as Haskell2010Jasper Van der Jeugt2020-08-02
|
* Bump version to 0.11.0.2v0.11.0.2Jasper Van der Jeugt2020-08-02
|
* Bump Cabal-version to 1.10Jasper Van der Jeugt2020-08-02
|
* Bump version to 0.11.0.1v0.11.0.1Jasper Van der Jeugt2020-08-02
|
* Bump Cabal upper bound to 3.3Jasper Van der Jeugt2020-08-02
|
* Bump aeson bound to < 1.6Luke Lau2020-08-02
|
* Bump version to 0.11.0.0v0.11.0.0Jasper Van der Jeugt2020-02-24
|
* Introduce nicer style for records (#266)Maxim Koltsov2020-02-17
|
* Bump version to 0.10.0.0v0.10.0.0Jasper Van der Jeugt2020-01-26
|
* Switch to HsYAML libraryvijayphoenix2020-01-26
|
* Small test tweaksJasper Van der Jeugt2020-01-26
| | | | * Use `withTestDirTree` in StylishSpec * Move StylishSpec module
* Fixes cabal warning about missing module (#260)Łukasz Gołębiewski2020-01-26
|
* 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>
* 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>
* Bump haskell-src-exts to 1.23Chris Martin2020-01-09
|
* Bump version to 0.9.4.4v0.9.4.4Jasper Van der Jeugt2019-11-03
|
* Allow haskell-src-exts 1.22.*Adam Bergmark2019-11-03
|
* Bump version to 0.9.4.3v0.9.4.3Jasper Van der Jeugt2019-10-29
|
* Bump Cabal upper bound to 3.1Jasper Van der Jeugt2019-10-29
|
* Bump version to 0.9.4.2v0.9.4.2Jasper Van der Jeugt2019-10-29
|
* Bump version to 0.9.4.1v0.9.4.1Jasper Van der Jeugt2019-10-29
|
* Bump version to 0.9.4.0v0.9.4.0Jasper Van der Jeugt2019-10-29
|
* Add a cabal option to control cabal parsingJasper Van der Jeugt2019-10-29
|
* Read extensions from cabal fileGeorgy Lukyanov2019-10-28
|
* Bump version to 0.9.3.1v0.9.3.1Jasper Van der Jeugt2019-10-08
|
* Bump version to 0.9.3.0v0.9.3.0Jasper Van der Jeugt2019-10-08
|
* Bump optparse-applicative upper bound to 0.16Eric D. White2019-10-08
|
* Bump version to 0.9.2.2v0.9.2.2Jasper Van der Jeugt2019-06-12
|
* Bump semigroups to 1.19Jasper Van der Jeugt2019-06-12
|
* Bump `haskell-src-exts` upper boundColin Woodbury2019-06-12
| | | | When using `1.21.0`, this allows for correct parsing of `DerivingVia` syntax.
* Bump version to 0.9.2.1v0.9.2.1Jasper Van der Jeugt2019-01-02
|
* Update bounds to support >= lts-2.5 (#227)Brandon Chinn2019-01-02
|
* Relax constraints, allow containers 0.6.*Dan Burton2018-12-06
|
* Allow yaml 0.9Felix Yan2018-07-16
| | | Builds fine and all tests pass.
* Bump version to 0.9.2.0v0.9.2.0Jasper Van der Jeugt2018-05-01
|
* Add new step to squash multiple spaces between some elementsMartin Huschenbett2018-05-01
|
* Bump version to 0.9.1.1v0.9.1.1Jasper Van der Jeugt2018-04-26
|
* Bump aeson to 1.3 for testsJasper Van der Jeugt2018-04-26
|
* Bump version to 0.9.1.0v0.9.1.0Jasper Van der Jeugt2018-04-26
|
* Bump aeson to 1.3Jasper Van der Jeugt2018-04-26
|