Skip to content

Releases: fourmolu/fourmolu

v0.19.0.0

19 Aug 17:23
6842cb7
Compare
Choose a tag to compare
  • Add haddock-location-signature, to configure haddock location independently of function-arrows (#376)

  • Add new if-style option to allow hanging then/else keywords (#479)

Upstream changes:

Ormolu 0.8.0.1

  • Correctly format edge cases where fully collapsing string gaps changes the
    string represented by a string literal. Issue
    1160
    .

  • Fix false positives in AST diffing in fixity declarations with implicit
    fixity, such as infix +. Issue
    1166
    .

  • Make multiline function signatures in RequiredTypeArguments consistent with
    types PR 1170

  • Correctly format single-line MultiWayIfs. Issue
    1171
    .

v0.18.0.0

25 Jan 21:26
eb3f1d6
Compare
Choose a tag to compare
  • Fix AST check with sort-constraints in data constructor (#451)

Upstream changes:

Ormolu 0.8.0.0

  • Format multiple files in parallel. Issue
    1128
    .

  • Fractional precedences are now allowed in .ormolu files for more precise
    control over formatting of complex operator chains. Issue
    1106
    .

  • Correctly format type applications of QuasiQuotes. Issue
    1134
    .

  • Correctly format multi-line parentheses in arrow do blocks. Issue
    1144
    .

  • Switched to ghc-lib-parser-9.12, with the following new syntactic features:

    • GHC proposal #522: OrPatterns (enabled by default)
    • GHC proposal #569: MultilineStrings (disabled by default)
    • GHC proposal #409: NamedDefaults (enabled by default)
    • GHC proposal #281: accept more types in terms: forall quantifications, constraint arrows =>, type arrows -> (enabled by default)
    • Part of GHC proposal #425: wildcard binders (enabled by default)
  • Correctly format non-promoted type-level tuples with NoListTuplePuns. Issue
    1146
    .

  • Updated to Cabal-syntax-3.14. Issue
    1152
    .

v0.17.0.0

15 Jan 06:21
96dd172
Compare
Choose a tag to compare
  • Add new import-grouping option to group imports with grouping rules specified in configuration (#403)

  • Add new sort-constraints option to sort constraints alphabetically (#433)

  • Add new sort-derived-classes option to sort classes in deriving clauses (#434)

  • Add new sort-derived-clauses option to sort classes deriving clauses (#434)

  • Add new trailing-section-operators option to disable trailing "section" operators (those that are infixr 0, such as $) (#444)

  • Fix issue where single-constraint-parens: never would drop parentheses around implicit parameters (#446)

  • Fix indentation for parenthesized expressions that start off the indentation column (#428)

  • Allow multiline comments in indented contexts (#65)

v0.16.2.0

17 Jun 00:48
e8aa5a6
Compare
Choose a tag to compare

Upstream changes:

Ormolu 0.7.7.0

  • Use single-line layout for parens around single-line content. Issue
    1120
    .

  • Allow function arguments to be on the same line even if the full type
    (with constraints and foralls) are on multiple lines. PR
    1125
    .

v0.16.1.0

13 Jun 05:30
ab9b00d
Compare
Choose a tag to compare

Upstream changes:

Ormolu 0.7.6.0

  • Fix Haddock comments on infix constructors
    Issue 758.

  • Don't require a trailing newline in .ormolu files. Issue
    1122
    .

  • Remove unnecessary indentation from list comprehensions. Issue
    966
    .

v0.16.0.0

12 Jun 06:05
Compare
Choose a tag to compare
  • Allow specifying path to configuration file with --config (#396)

Upstream changes:

Ormolu 0.7.5.0

  • Switched to ghc-lib-parser-9.10, with the following new syntactic features/behaviors:

    • GHC proposal #575: deprecated instances.
    • GHC proposal #281: visible forall in types of terms.
      Enabled by RequiredTypeArguments (enabled by default).
    • LinearTypes: let and where bindings can now be linear, in particular have multiplicity annotations.
    • Using forall as an identifier is now a parse error.
    • GHC proposal #65: namespacing fixity declarations for type names and WARNING/DEPRECATED pragmas.
    • TypeAbstractions now supports @-binders in lambdas and function equations.
    • Support for the GHC2024 language.
  • Updated to Cabal-syntax-3.12.

v0.15.0.0

19 Feb 21:50
768505e
Compare
Choose a tag to compare
  • Add single-deriving-parens configuration option to determine if deriving clauses of a single type should be parenthesized (#386)

  • Fix the order in which the configurations are applied (#390)

Upstream changes:

Ormolu 0.7.4.0

  • Don't error when the JavaScriptFFI language pragma is present. Issue
    1087
    .
  • Improve comment placement in if-then-else blocks. Issue
    998
    .
  • Now command line options for fixity overrides and module re-exports
    overwrite information from .ormolu files. Issue
    1030
    .
  • Respect newlines in data declarations in more cases. Issue
    1077
    and issue
    947
    .
  • The -d / --debug command line option now makes Ormolu print out debug
    information regarding operator fixity inference. Issue
    1060
    .

v0.14.1.0

27 Oct 01:42
bf74809
Compare
Choose a tag to compare
  • Fix single-constraint-parens: never for nested quantified constraints (#374)

  • Fix column-limit with BlockArguments (#377)

  • Fixed an issue where re-exporting a module with Haddock comments + import-exports=leading was indented too far (#381)

Upstream changes:

Ormolu 0.7.3.0

  • Switched to ghc-lib-parser-9.8, with the following new syntactic features:
    • ExtendedLiterals: 123#Int8 is a literal of type Int8#. (disabled by
      default)
    • TypeAbstractions: @k-binders in data type declarations (enabled by
      default)
    • GHC proposal #134: deprecating/warning about exports
    • GHC proposal #541: warning categories

v0.14.0.0

07 Sep 04:52
3b35c66
Compare
Choose a tag to compare
  • Provide resolvePrinterOpts instead of fillMissingPrinterOpts

  • Format configuration better in --debug output

Upstream changes:

Ormolu 0.7.2.0

  • Preserve necessary braces for final function arguments. Issue
    1044
    .

  • Put "this" PackageImports at the end. Issue
    1048
    .

  • Format parenthesized operators starting with a # correctly in the presence
    of UnboxedSums. Issue 1062.

  • Fix false positives in AST diffing related to empty Haddock comments in data
    declarations. Issue 1065.

v0.13.1.0

09 Jul 18:42
9181f7e
Compare
Choose a tag to compare
  • Fix single-constraint-parens: never with QuantifiedConstraints (#340)
  • Fix issue with single documented export + import-export-style: leading (#341)
  • Fix reexports configuration not allowing repeated modules (#336)