Fsharp: Difference between revisions
imported>Samuela No edit summary |
imported>Samuela No edit summary |
||
Line 14: | Line 14: | ||
For help type #help;; | For help type #help;; | ||
> | > printfn "Hello world from F#";; | ||
Hello world from F# | |||
val it : unit = () | |||
</pre> | </pre> | ||
like so! | like so! |
Revision as of 03:26, 18 May 2021
Usage
F# is packaged in the `dotnet-sdk` family of packages (`dotnet-sdk_2`, `dotnet-sdk_3`, and `dotnet-sdk_5` as of 5/17/2021).
You can pop into a REPL:
$ nix-shell -p dotnet-sdk_5 warning: unknown setting 'experimental-features' [nix-shell:~]$ dotnet fsi Microsoft (R) F# Interactive version 11.3.2.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved. For help type #help;; > printfn "Hello world from F#";; Hello world from F# val it : unit = ()
like so!