summaryrefslogtreecommitdiffhomepage
path: root/lib/Language/Haskell/Stylish/Step/UnicodeSyntax.hs
Commit message (Collapse)AuthorAge
* Refactor UnicodeSyntax.hs (#317)Łukasz Gołębiewski2020-10-07
| | | | | * Refactor UnicodeSyntax.hs Co-authored-by: Jasper Van der Jeugt <jaspervdj@gmail.com>
* 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>
* Make language extension prefix configurableFlavio Corpa2019-11-20
|
* Bump haskell-src-exts to 1.18Jasper Van der Jeugt2016-08-01
|
* add more symbols from UnicodeSyntaxLangston Barrett2016-07-02
|
* Fix warningsJasper Van der Jeugt2016-02-01