Skip to content

Commit c27af01

Browse files
committed
Update fable-py to -21
1 parent 8f85e0f commit c27af01

File tree

8 files changed

+20
-29
lines changed

8 files changed

+20
-29
lines changed

.config/dotnet-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
]
1010
},
1111
"fantomas-tool": {
12-
"version": "4.5.4",
12+
"version": "4.5.10",
1313
"commands": [
1414
"fantomas"
1515
]
1616
},
1717
"fable-py": {
18-
"version": "4.0.0-alpha-016",
18+
"version": "4.0.0-alpha-021",
1919
"commands": [
2020
"fable-py"
2121
]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ library until we decide how to deal with Python version handling.
2727
Prerequisite for compiling F# to Python using Fable:
2828

2929
```sh
30-
> dotnet tool install --global fable-py --version 4.0.0-alpha-005
31-
> dotnet add package Fable.Core.Experimental --version 4.0.0-alpha-006
30+
> dotnet tool install --global fable-py --version 4.0.0-alpha-01
31+
> dotnet add package Fable.Core.Experimental --version 4.0.0-alpha-021
3232
```
3333

3434
To use the `Fable.Python` library in your Fable project:

docs-src/dotnet/numbers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Numeric types
22

3-
In Fable, we use F# numeric types, which are all translated to JS Number (64-bit floating type) at the exception of `int64`, `uint64`, `bigint` and `decimal`.
3+
In Fable, we use F# numeric types, which are all translated to Python integers at the exception of `float`, `double`, and `decimal`.
44

5-
Fable numbers are very nearly compatible with .NET semantics, but translating into Javascript types has consequences:
5+
Fable numbers are very nearly compatible with .NET semantics, but translating into Python types has consequences:
66

77
* (non-standard) All floating point numbers are implemented as 64 bit (`double`). This makes `float32` numbers more accurate than expected.
88
* (non-standard) Arithmetic integers of 32 bits or less are implemented with different truncation from that expected, as whole numbers embedded within `double`.

docs-src/index.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
# Python you can be proud of!
22

3-
<!--
4-
Index page of Fable is mostly written using HTML because it needs specific layouts
5-
6-
It is still process as markdown by Nacara so we get nice snippet coloration and also
7-
benefit of the navbar generation and same style across all Fable website
8-
-->
9-
103
````{panels}
11-
Type safety without the hassle
4+
<img src="/static/img/fsharp.png" /> **Functional programming and more**
125
^^^
136
Immutable by default. Powerful pattern matching. Lightweight syntax. Units of measure. Type providers. Enjoy.
14-
+++
15-
Panel footer 1
167
---
17-
18-
Type safety without the hassle
8+
<span class="icon is-small has-text-black"><i class="fas fa-lock fa-2x"></i></span> **Type safety without the hassle**
199
^^^
2010
Type inference provides robustness and correctness, but without the cost of additional code. Let the compiler catch bugs for you.
21-
+++
22-
Panel footer 2
2311
````
2412

2513
<!-- Disable the copy-button on all the elements contained inside the container (all this page) -->
@@ -250,8 +238,8 @@ task {
250238
type OptionBuilder() =
251239
member __.Bind(opt, binder) =
252240
match opt with
253-
| Some value -> binder value
254-
| None -> None
241+
| Some value -> binder value
242+
| None -> None
255243
member __.Return(value) =
256244
Some value
257245

examples/timeflies/TimeFlies.fsproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</ItemGroup>
1111
<ItemGroup>
1212
<PackageReference Include="Fable.Python" Version="0.16.0" />
13-
<PackageReference Include="Fable.Core.Experimental" Version="4.0.0-alpha-016" />
13+
<PackageReference Include="Fable.Core.Experimental" Version="4.0.0-alpha-021" />
1414
<PackageReference Include="FSharp.Control.AsyncRx" Version="1.6.0" />
1515
</ItemGroup>
16-
</Project>
16+
</Project>

paket.dependencies

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ storage: none
55
framework: net6.0, netstandard2.0, netstandard2.1
66

77
nuget FSharp.Core ~> 4.7
8-
nuget Fable.Core.Experimental >= 4.0.0-alpha-016
8+
nuget Fable.Core.Experimental >= 4.0.0-alpha-021
99

1010
group Test
1111
source https://api.nuget.org/v3/index.json
1212
storage: none
1313
framework: net6.0
1414

1515
nuget FSharp.Core
16-
nuget Fable.Core.Experimental >= 4.0.0-alpha-016
16+
nuget Fable.Core.Experimental >= 4.0.0-alpha-021
1717
nuget Microsoft.NET.Test.Sdk ~> 16
1818
nuget XUnit ~> 2
1919
nuget xunit.runner.visualstudio ~> 2
@@ -24,5 +24,6 @@ group Build
2424
storage: none
2525
framework: net6.0
2626

27+
nuget System.Collections.Immutable
2728
nuget Fake.Core.Target
2829
nuget Fake.IO.FileSystem

paket.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ STORAGE: NONE
22
RESTRICTION: || (== net6.0) (== netstandard2.0) (== netstandard2.1)
33
NUGET
44
remote: https://api.nuget.org/v3/index.json
5-
Fable.Core.Experimental (4.0.0-alpha-016)
5+
Fable.Core.Experimental (4.0.0-alpha-021)
66
FSharp.Core (4.7.2)
77

88
GROUP Build
@@ -63,13 +63,13 @@ STORAGE: NONE
6363
RESTRICTION: == net6.0
6464
NUGET
6565
remote: https://api.nuget.org/v3/index.json
66-
Fable.Core.Experimental (4.0.0-alpha-016)
66+
Fable.Core.Experimental (4.0.0-alpha-021)
6767
FSharp.Core (6.0.1)
6868
Microsoft.CodeCoverage (17.0)
6969
Microsoft.NET.Test.Sdk (16.11)
7070
Microsoft.CodeCoverage (>= 16.11)
7171
Microsoft.TestPlatform.TestHost (>= 16.11)
72-
Microsoft.NETCore.Platforms (6.0)
72+
Microsoft.NETCore.Platforms (6.0.1)
7373
Microsoft.TestPlatform.ObjectModel (17.0)
7474
NuGet.Frameworks (>= 5.0)
7575
System.Reflection.Metadata (>= 1.6)

paket.references

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
group Build
22

3+
System.Collections.Immutable
4+
35
Fake.Core.Target
46
Fake.IO.FileSystem

0 commit comments

Comments
 (0)