No output from "fsharpi test.fsx" (mono 3.4.0 mac)

50 views
Skip to first unread message

Sámal Rasmussen

unread,
Apr 16, 2014, 11:07:39 AM4/16/14
to fsharp-o...@googlegroups.com
Hi, I'm not getting any output when running "fsharpi test.fsx". It just runs for a few seconds and exits without any output.

test.fsx contents:
let test = 3+3;;

When running "fsharpi" and writing "let test = 3+3;;" it gives "val test : int = 6" as expected.

Running "fsharpi --exec --use:test.fsx" also works fine.

Sámal Rasmussen

unread,
Apr 18, 2014, 7:54:30 AM4/18/14
to fsharp-o...@googlegroups.com
FML. I ofcourse need to make the script output something to stdout to get something on stdout. So this script works:

let test = 3+3
printf "%d\n" test
Reply all
Reply to author
Forward
0 new messages