FSharp.Management


FSharp.Management

The FSharp.Management project contains various type providers for the management of the machine.

In addition, a set of utilities for dealing with common paths on the system at runtime are provided.

The library can be installed from NuGet:
PM> Install-Package FSharp.Management

Example

This example demonstrates the use of the FileSystem type provider:

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
// reference the type provider dll
#r "FSharp.Management.dll"
open FSharp.Management

// Let the type provider do it's work
type Users = FileSystem<"C:\\Users\\">

// now you have typed access to your filesystem and you can browse it via Intellisense
Users.AllUsers.Path
val it : string = "C:\Users\All Users"

Contributing and copyright

The project is hosted on GitHub where you can report issues, fork the project and submit pull requests. If you're adding new public API, please also consider adding samples that can be turned into a documentation. You might also want to read library design notes to understand how it works.

The library is available under Public Domain license, which allows modification and redistribution for both commercial and non-commercial purposes. For more information see the License file in the GitHub repository.

namespace FSharp
namespace FSharp.Management
type Users = FileSystem<...>

Full name: Index.Users
type FileSystem

Full name: FSharp.Management.FileSystem
Fork me on GitHub