Releases: fourmolu/fourmolu
v0.19.0.0
-
Add
haddock-location-signature
, to configure haddock location independently offunction-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 asinfix +
. Issue
1166. -
Make multiline function signatures in RequiredTypeArguments consistent with
types PR 1170 -
Correctly format single-line
MultiWayIf
s. Issue
1171.
v0.18.0.0
- 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)
- GHC proposal #522:
-
Correctly format non-promoted type-level tuples with
NoListTuplePuns
. Issue
1146. -
Updated to
Cabal-syntax-3.14
. Issue
1152.
v0.17.0.0
-
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 areinfixr 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
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
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
- 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 byRequiredTypeArguments
(enabled by default). LinearTypes
:let
andwhere
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
-
Add
single-deriving-parens
configuration option to determine ifderiving
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
-
Fix
single-constraint-parens: never
for nested quantified constraints (#374) -
Fix
column-limit
withBlockArguments
(#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:
v0.14.0.0
-
Provide
resolvePrinterOpts
instead offillMissingPrinterOpts
-
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
ofUnboxedSums
. Issue 1062. -
Fix false positives in AST diffing related to empty Haddock comments in data
declarations. Issue 1065.