Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

compile and run f# scripts from osx terminal

Is there a way to compile and run f# from osx console? I have mono installed and added /mono64/bin/mono to paths, but mcs command returns

test.fs(2,0): error CS1525: Unexpected symbol `let'
Compilation failed: 1 error(s), 0 warnings
like image 779
nik Avatar asked Jan 24 '16 11:01

nik


1 Answers

FSharp Interactive:

fsharpi

F# Interactive for F# 4.0 (Open Source Edition) Freely distributed under the Apache 2.0 Open Source License

For help type #help;;

FSharp Compiler:

fsharpc

F# Compiler for F# 4.0 (Open Source Edition) Freely distributed under the Apache 2.0 Open Source License

like image 162
SushiHangover Avatar answered Sep 26 '22 00:09

SushiHangover