fantomas.linux-x64
9.0.0-alpha-001
Prefix Reserved
See the version list below for details.
dotnet add package fantomas.linux-x64 --version 9.0.0-alpha-001
NuGet\Install-Package fantomas.linux-x64 -Version 9.0.0-alpha-001
<PackageReference Include="fantomas.linux-x64" Version="9.0.0-alpha-001" />
<PackageVersion Include="fantomas.linux-x64" Version="9.0.0-alpha-001" />
<PackageReference Include="fantomas.linux-x64" />
paket add fantomas.linux-x64 --version 9.0.0-alpha-001
#r "nuget: fantomas.linux-x64, 9.0.0-alpha-001"
#:package fantomas.linux-x64@9.0.0-alpha-001
#addin nuget:?package=fantomas.linux-x64&version=9.0.0-alpha-001&prerelease
#tool nuget:?package=fantomas.linux-x64&version=9.0.0-alpha-001&prerelease
Fantomas

An opinionated F# source code formatter.
dotnet tool install fantomas
Documentation is available at https://fsprojects.github.io/fantomas/docs/
If you point a coding agent at Fantomas, give it llms.txt for an index of the documentation, or llms-full.txt for all of it in one file.
Reporting a bug
Report bugs through the online tool, which opens an issue with everything needed to reproduce it.
With a coding agent, the fantomas-report skill shrinks the file Fantomas failed on to a minimal sample and opens the same issue form for you to review:
npx skills add fsprojects/fantomas --skill fantomas-report -g
See Reporting a bug for more.
Contributing Guidelines
See the Contribution Guidelines and our contributors documentation
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.0-alpha-002 | 795 | 10/21/2026 |
| 9.0.0-alpha-001 | 263 | 10/16/2026 |
### Changed
- Fantomas checks that its output keeps every `//` and `(* *)` comment of the file. A format run searches its result for each of them, and does not write a result that is missing one, even when it is valid F#. The daemon that editors use refuses such output too, and output that is not valid F#, where it used to send both to the editor. `fantomas doctor` has a `Comments` step that checks, more thoroughly than a format run can afford, that the result keeps every comment and directive of the file under every define combination, a `Parse` step that lists the define combinations the file is parsed under, and ends on a `Verdict`: what a format run would do with the file. `CodeFormatter.FormatDocumentWithValidationsAsync` takes the checks to run as `Validations`, and `FormatResult` has a new field, `Issues`, with what they found, so code that constructs a `FormatResult` has to set it. `DefineParseException.Combinations` holds the defines of each combination that failed, rather than their names. [#1353](https://github.com/fsprojects/fantomas/issues/1353)
- On Linux x64, the `fantomas` tool is an executable compiled with Native AOT. It starts in milliseconds rather than first starting the .NET runtime. The `fantomas` package only names the packages per platform: `fantomas.linux-x64` and, for Alpine, `fantomas.linux-musl-x64` hold the executable, and every other platform installs `fantomas.any`, the tool as it shipped before. [#3171](https://github.com/fsprojects/fantomas/issues/3171)