Improve formatting and settings in pre-commit configuration for fourmolu

- Added new settings: function-arrows, haddock-style, haddock-style-module, import-export-style, in-style, let-style, single-constraint-parens, and unicode.
This commit is contained in:
♥ Minnie ♥ 2025-02-20 20:45:10 +08:00
parent 3857b5dfa3
commit 594c0e99a9
Signed by: jasmine
GPG key ID: 8563E358D4E8040E

View file

@ -18,15 +18,22 @@
}; };
fourmolu.settings = { fourmolu.settings = {
indentation = 2; column-limit = 120;
comma-style = "leading"; comma-style = "leading";
record-brace-space = true;
indent-wheres = true;
import-export-style = "diff-friendly";
respectful = true;
haddock-style = "multi-line";
newlines-between-decls = 1;
extensions = [ "ImportQualifiedPost" ]; extensions = [ "ImportQualifiedPost" ];
function-arrows = "leading";
haddock-style = "single-line";
haddock-style-module = "single-line";
import-export-style = "leading";
in-style = "left-align";
indent-wheres = false;
indentation = 2;
let-style = "inline";
newlines-between-decls = 1;
record-brace-space = true;
respectful = true;
single-constraint-parens = "always";
unicode = "never";
}; };
}; };
} }