Is there F# Interactive for Linux on .NET Core, without using Mono?
dotnet core 3 preview 3 supports F# interactive as a pure .NET Core application:
dotnet fsi --readline
Yes there is, but it's hidden in a deep directory.
I have the following script in my $PATH, with name
fsi, to find it and launch it:
#!/bin/sh dotnet=/usr/bin/dotnet fsi=/usr/share/dotnet/sdk/*/FSharp/fsi.exe if ! [ -f $fsi ] 2>/dev/null; then echo ERROR Cannot find fsi.exe or more than one is present exit 2 fi exec $dotnet $fsi "[email protected]"
$ fsi Microsoft (R) F# Interactive version 10.2.3 for F# 4.5 Copyright (c) Microsoft Corporation. All Rights Reserved. For help type #help;; > 1+1;; val it : int = 2 >
With this, you can uninstall Mono and the old