Skip to content

Releases: haskell/stylish-haskell

v0.14.0.0

16 Mar 21:07
Compare
Choose a tag to compare
- 0.14.0.0 (2022-03-16)
     *  Port to GHC 9.2 AST (by jaspervdj)
     *  Case insensitive import sort (by vlatkoB)
     *  Fix issue with dissappearing GADT kind signatures (by Łukasz Gołębiewski)

v0.13.0.0

15 Sep 20:57
Compare
Choose a tag to compare
- 0.13.0.0 (2021-09-15)
     *  Don't remove ticks on promoted data types (by Jim McStanton)
     *  Add break_only_where option (by 1Computer1)
     *  Keep wildcard if present in IEThingWith (by Moisés Ackerman)
     *  Generalise break_only_where to allow single-line module headers
        (by Thomas Winant)
     *  Add new configuration to ModuleHeader step (by Pawel Szulc)
     *  Add a language pragma style "vertical_compact" (by Javran Cheng)
     *  Don't remove existential quantification (by Imuli)
     *  Add support for post qualified import formatting (by Moisés Ackerman)
     *  Bump `optparse-applicative` upper bound to 0.17

v0.12.2.0

08 Oct 12:56
Compare
Choose a tag to compare
- 0.12.2.0 (2020-10-08)
     *  align: Add a new option for aligning only adjacent items (by 1Computer1)
     *  align: Add support for aligning MultiWayIf syntax (by 1Computer1)
     *  data: Fix some issues with record field padding
     *  module_header: Add separate_lists option
     *  imports: Respect separate_lists for (..) imports
     *  data: Make sorting deriving list optional (by Maxim Koltsov)

v0.12.1.0

05 Oct 11:03
Compare
Choose a tag to compare
- 0.12.1.0 (2020-10-05)
     *  Bump Cabal-version to 2.4 (by Łukasz Gołębiewski)
     *  Fix "group" import sort with multi-line imports (by Maxim Koltsov)

v0.12.0.0

02 Oct 11:59
Compare
Choose a tag to compare
 -  0.12.0.0 (2020-10-02)
     *  Use ghc-lib-parser rather than haskell-src-exts

        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 (..))
            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`.

     *   Remove `semigroup` dependency for GHC >= 8.0
     *   Bump `strict` upper bound to 0.4
     *   Bump `Cabal` upper bound to 3.3 for test suite

v0.11.0.0

24 Feb 14:30
3621bf3
Compare
Choose a tag to compare
- 0.11.0.0 (2020-02-24)
    * Disable record formatting by default
    * Allow more customization for record formatting (by Maxim Koltsov)
    * Disable formatting of data types without records (by Maxim Koltsov)
    * Add `-r` flag to recursively find Haskell files (by Akos Marton)

v0.10.0.0

26 Jan 14:28
Compare
Choose a tag to compare
- 0.10.0.0 (2020-01-26)
    * Switch to HsYAML library (by vijayphoenix)
    * Expose `format` from main library (by Łukasz Gołębiewski)
    * Support record formatting (by Łukasz Gołębiewski and Pawel Szulc)
    * Allow setting `columns` to `null` to disable all wrapping (by Chris
      Martin)
    * Bump `haskell-src-exts` to 1.23
    * New logo (by Jose Fernando García Parreño)

v0.9.4.4

03 Nov 18:44
Compare
Choose a tag to compare
v0.9.4.4

v0.9.4.3

29 Oct 15:28
Compare
Choose a tag to compare
v0.9.4.3

v0.9.4.2

29 Oct 12:37
Compare
Choose a tag to compare
v0.9.4.2