fantomas 8.0.0-alpha-008

This is a prerelease version of fantomas.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global fantomas --version 8.0.0-alpha-008
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local fantomas --version 8.0.0-alpha-008
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=fantomas&version=8.0.0-alpha-008&prerelease
                    
nuke :add-package fantomas --version 8.0.0-alpha-008
                    

Fantomas

Fantomas logo

GitHub Workflow Status (event) Discord Nuget (with prereleases)

An opinionated F# source code formatter.

dotnet tool install fantomas

Documentation is available at https://fsprojects.github.io/fantomas/docs/index.html

Contributing Guidelines

See the Contribution Guidelines and our contributors documentation

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
8.0.0-alpha-012 17 4/16/2026
8.0.0-alpha-011 59 4/15/2026
8.0.0-alpha-010 55 4/15/2026
8.0.0-alpha-009 145 4/3/2026
8.0.0-alpha-008 122 3/25/2026
8.0.0-alpha-007 129 3/10/2026
8.0.0-alpha-006 90 3/9/2026
8.0.0-alpha-005 91 3/9/2026
8.0.0-alpha-004 87 3/7/2026
8.0.0-alpha-003 97 3/3/2026
8.0.0-alpha-002 332 12/15/2025
8.0.0-alpha-001 127 12/12/2025
7.0.5 96,737 12/5/2025
7.0.4 1,270 12/5/2025
7.0.3 109,655 7/4/2025
7.0.2 42,389 5/28/2025
7.0.1 57,494 2/21/2025
7.0.0 68,006 1/10/2025
7.0.0-beta-001 340 12/30/2024
7.0.0-alpha-004 1,082 12/12/2024
Loading failed

### Added

- Support for `#elif` preprocessor directive. [#3268](https://github.com/fsprojects/fantomas/issues/3268)

### Fixed

- Multiline `val` body in signature files was not indented correctly. [#3269](https://github.com/fsprojects/fantomas/pull/3269)
- `///` doc comment without associated declaration (e.g. at end of file) was duplicated when formatting. [#2499](https://github.com/fsprojects/fantomas/issues/2499)
- NamedIndexedPropertySet with two SynLongIdent removed space. [#3273](https://github.com/fsprojects/fantomas/issues/3273)
- `%%` (double-percent) infix operator moved to new line, producing invalid F#. [#2107](https://github.com/fsprojects/fantomas/issues/2107)
- Indentation warning when formatting `match` with long anonymous record discriminant. [#1903](https://github.com/fsprojects/fantomas/issues/1903)
- Index-without-dot with variable key followed by unit arguments added spurious spaces, e.g. `dict[key] () ()` became `dict [ key ] () ()`. [#2519](https://github.com/fsprojects/fantomas/issues/2519)
- Open-ended expressions (lambda, if-then-else, match, ...) in non-last positions of infix, tuple, list/array, and record expressions now stay multiline to preserve semantics. [#3279](https://github.com/fsprojects/fantomas/issues/3279)
- Lambda in tuple in list on single line changes code meaning. [#3278](https://github.com/fsprojects/fantomas/issues/3278)
- Custom operator applied to lambda collapses to single line changing semantics. [#3274](https://github.com/fsprojects/fantomas/issues/3274)