F# is a cross-platform functional language on .NET with type inference, pattern matching, and first-class functions. This project ships the compiler, core library, and editor tooling.
Overview
F# is an open-source programming language for the .NET platform, designed for succinct, robust application code with strong typing. It emphasizes type inference, first-class functions, pattern matching, and object support within a functional style suitable for web APIs, data work, scripting, and general .NET development.
The dotnet/fsharp project contains the F# compiler, FSharp.Core runtime library, language service, and Visual Studio integration tooling. Development builds run on any OS supported by .NET using the SDK version pinned in global.json, with separate solutions for the compiler and for Visual Studio-specific tools.
Official releases align FSharp.Compiler.Service and FSharp.Core packages with .NET SDK cadence, while preview packages publish from active branches. Compiler documentation describes architecture and contribution workflows for changes to language behavior or tooling.
Microsoft contributes to the language as open source alongside community governance through the F# Software Foundation. Tooling targets Windows, Linux, and macOS editors sharing one compiler backend, and F# interoperates with the broader .NET library ecosystem.
Key features
- Modern F# compiler
- FSharp.Core standard library
- Visual Studio language service
- Type inference and pattern matching
- FSharp.Compiler.Service API
- Cross-platform .NET builds
- Units of measure and type providers
- Community and foundation support
Use cases
- Functional .NET application development
- Data science and machine learning on .NET
- Building compiler or tooling contributions
- Cross-platform CLI and web services