F# open source projects

Viewed 10312

I'm looking for some open source F# projects to learn from. Something not snippets but full projects that are good representatives of F# features (i.e. pattern matching, discriminated unions, etc).

My objective are mainly to see how all the features fit together, how the project is organized and how the problems are tackled from a functional perspective.

14 Answers

FsCheck, a specification-based testing framework.

VCC, static analysis of C programs (by MS research)

VSLab, a mathematica/matlab like environment in visual studio

Found another one:

Storm: a tool for testing web services

DownloadStockPrices:

Downloads stock prices, dividends and splits from Yahoo historical quotes. It also modify them to make them as happened and adjust them to calculate adjusted prices. There is also a .NET component that can be reused from C#/VB.NET. It is written in F# but it can be used from whatever .NET language.

Link to blog posts is here:

It has been written with the F# September 2008 CTP.

The solution is composed by:

  • a library to perform the dowload
  • a test project using xUnit (but you have to download xUnit and reference it in the Tests project to run it)
  • a simple Console based driver
  • a start of a graphical UI app using the library (called Bob)

I just created a spot for my open source project Unquote, an F# library for writing unit test assertions as F# quoted expressions. It's a good example for learning about recursively processing and rebuilding quotations using active patterns and pattern matching, mixing object oriented and functional code (it uses .NET Reflection heavily), and writing unit tests using xUnit.net and... the library itself.

Related