One-file solution for various problems writing F#
Prelude.fs extends the standard library with many useful modules and functions.
For example, the String module provides functions that were only accessible as member methods, such as String.replace.
See the src directory for details.
Contributions are very welcome!
Note that every source file (inside src/) must start with namespace Prelude.
build.fsx concatenates them into one file, removing the namespace definition.
Also, make sure you execute fake build every time before the commit.
If you are using *nix, you can do it automatically by copying copy_this_to_git_hooks_pre-commit to .git/hooks/pre-commit.
Unfortunately I don't have a Windows PC, so writing a git hook script for Windows will be a big contribution.
It is also lacking documentation, and it will be great to have more useful functions!
- You can just copy it to your project or use Paket:
github cannorin/prelude.fs prelude.fs
- It is also available on NuGet:
dotnet add package Prelude.fs
Prelude.fs is licensed under the MIT License.