対話モード。
コンパイルしてみる。(ソースはUTF8で)
> fsi
Microsoft F# Interactive, (c) Microsoft Corporation, All Rights Reserved
F# Version 1.9.6.2, compiling for .NET Framework Version v2.0.50727
Please send bug reports to fsbugs@microsoft.com
For help type #help;;
> 1;;
val it : int = 1
> 'a';;
val it : char = 'a'
> "Hwllo";;
val it : string = "Hwllo"
> 1+1;;
val it : int = 2
>type sample.fs | nkf -s
#light
open System.Windows.Forms
let form = new Form(Text="さんぷる")
form.Show()
Application.Run(form)
> fsc sample.fs -r System.Windows.Forms.dll
Microsoft F# Compiler, (c) Microsoft Corporation, All Rights Reserved
F# Version 1.9.6.2, compiling for .NET Framework Version v2.0.50727
> sample.exe