Advanced Functional Prog.

back


Compilation

Create an F# project/application:

dotnet new console -lang F# -o Sample
cd Sample
vim Program.fs

Define main program/function:

[<EntryPoint>]
let main args = 
  printfn "Welcome !"
  0

Run or generate exe:

dotnet run
# or
dotnet build
./bin/Debug/net7.0/Sample

Nb. In case of .NET location: Not found:

export DOTNET_ROOT=$(which dotnet)