summaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
* 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>
* Add -r flag to recursively find Haskell filesAkos Marton2020-02-15
|
* Use file-embed for default configurationJasper Van der Jeugt2017-12-26
|
* On errors, show error and exit with code 1Jasper Van der Jeugt2017-01-07
| | | | See #146
* Set newline format to `stdout` tooSvyatoslav Gryaznov2016-07-06
|
* Do not change input newline format when writing fileSvyatoslav Gryaznov2016-07-06
|
* Add newline format optionSvyatoslav Gryaznov2016-07-05
|
* Add --version optionOndra Pelech2016-06-26
| | | | fixes https://github.com/jaspervdj/stylish-haskell/issues/112
* Use --utf8 by default, use optparse-applicativeJasper Van der Jeugt2016-06-10
|
* Add an --utf8 flagJasper Van der Jeugt2016-06-01
|
* Fix warningsJasper Van der Jeugt2016-02-01
|
* Use underscores in the yaml optionsJasper Van der Jeugt2016-02-01
|
* Merge branch 'master' of https://github.com/JOndra91/stylish-haskell into ↵Jasper Van der Jeugt2016-02-01
|\ | | | | | | JOndra91-master
| * 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.
| * Fixed some hlint warningsOndřej Janošík2015-09-21
| |
| * 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
| |
| * Improved long line detectionOndřej Janošík2015-07-20
| |
| * 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
| |
| * Fixed import alignments to pass testsOndřej Janošík2015-07-09
| |
| * Fix for wrapping when max collumn count is set to small numberOndřej Janošík2015-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 codeOndřej Janošík2015-07-09
| |
| * Fix for imports with only instancesOndřej Janošík2015-07-09
| |
| * Ensured compatibility with original formattingOndřej Janošík2015-07-09
| |
| * Added list_padding optionOndřej Janošík2015-07-09
| |
| * Align options for importsOndřej Janošík2015-07-08
| |
* | Bump stylish-haskell to 1.17.00.5.14.4Jasper Van der Jeugt2015-11-20
|/
* Slightly refactor record alignmentJasper Van der Jeugt2015-04-19
|
* Fix issue with shebang code0.5.13.0Jasper Van der Jeugt2015-04-19
|
* Add support for shebang at start of fileJasper Van der Jeugt2015-04-19
| | | | Fixes #86
* Fix warningsJasper Van der Jeugt2015-01-23
|
* Fix code that was confusing GHC 7.10Jasper Van der Jeugt2015-01-16
|
* Fix for haskell-src-exts 0.16 releaseLeonid Onokhov2014-09-15
| | | | | Unfortunately makes it incompatible with earlier haskell-src-exts package versions
* Make UTF read file mode default (fixes Windows file reading behavior)danbst2014-04-14
|
* Small fixes for #34Jasper Van der Jeugt2013-12-18
|
* Merge pull request #34 from konn/masterJasper Van der Jeugt2013-12-18
|\ | | | | Added new pragma style `line'
| * * Rewrite function using `compact'.Hiromi Ishii2013-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 Ishii2013-04-02
| |\ | | | | | | | | | | | | Conflicts: src/Language/Haskell/Stylish/Step/LanguagePragmas.hs
| * | Added `line' language pragma style. It is similar to `compact` but put "{-# ↵Hiromi Ishii2012-09-16
| | | | | | | | | | | | LANGUAGE " for each line instead of padding.
* | | Bump HSE dependency to 1.14.*0.5.8.0Jasper Van der Jeugt2013-08-20
| | |
* | | Take Haskell2010 extension into accountJasper Van der Jeugt2013-08-05
| | | | | | | | | | | | Closes #36
* | | Strip BOM *before* reading language extensionsJasper Van der Jeugt2013-08-03
| |/ |/|
* | Be careful with multiline CPPJasper Van der Jeugt2013-02-07
| | | | | | | | Closes #31
* | Deal with pragmas in groups0.5.5.0Jasper Van der Jeugt2012-12-05
| | | | | | | | Closes #26
* | Make groupAdjacent a bit more abstractJasper Van der Jeugt2012-12-03
| |
* | Use classifyExtension to parse extensionsJasper Van der Jeugt2012-12-03
| | | | | | | | See #24
* | Rewrite config file searching a bitJasper Van der Jeugt2012-11-05
| | | | | | | | See #21
* | Search for the config file in the project root.Mikhail Glushenkov2012-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.