Public bug reported:
F# compiler in ubuntu is really old. This is taken from Focasa preview:
$ fsharpc --help
F# Compiler for F# 4.0 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License
$ dpkg --list | grep fsharp
ii fsharp 4.0.0.4+dfsg2-2
This compiler has bugs that upstream new versions of F# don't have, for
example:
a) Create a file "bug.fs" with this content:
```
let FindInFile (someStrings: seq<string>) =
for line in System.IO.File.ReadLines "someFile" do
for someString in someStrings do
System.Console.Write line
FindInFile ["x";"y"]
```
Compile it with `fsharpc bug.fs`
Current results:
F# Compiler for F# 4.0 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License
/home/knocte/Documents/geewallet/bug.fs(4,34): error FS0971: Undefined
value 'line : string'
Expected results (what happens with newer F# in Windows):
C:\Users\knocte>"C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\FSharp\fsc.exe"
bug.fs
Microsoft (R) F# Compiler version 10.8.0.0 for F# 4.7
Copyright (c) Microsoft Corporation. All Rights Reserved.
C:\Users\knocte>
(no error)
b) The bundled version of the tool "fsharpi" is also buggy, see
https://github.com/fsharp/fsharp/issues/740
** Affects: fsharp (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1867887
Title:
Old version of compiler
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fsharp/+bug/1867887/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs