Skip to content

Commit 88a687c

Browse files
committed
Merge branch 'master' into v1.6
2 parents 941c9e5 + 4779a8f commit 88a687c

File tree

12 files changed

+20
-15
lines changed

12 files changed

+20
-15
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"fable": {
6-
"version": "4.1.4",
6+
"version": "4.5.0",
77
"commands": [
88
"fable"
99
]

.github/workflows/fable.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
run: git submodule update --init --recursive
1818
- name: Remove global json
1919
run: rm global.json
20+
- name: Set target framework to net6 instead of net8
21+
uses: Mudlet/xmlstarlet-action@master
22+
with:
23+
args: edit --inplace --update "/Project/PropertyGroup/TargetFrameworks" --value "netstandard2.0;netstandard2.1;net6.0" ./src/FSharpPlus/FSharpPlus.fsproj
2024
- name: Setup .NET Core
2125
uses: actions/setup-dotnet@v3
2226
with:

src/FSharpPlus/FSharpPlus.fsproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<FscToolExe>$(FSC_ExePathCompilerBuild)</FscToolExe>
66
</PropertyGroup>
77
<PropertyGroup>
8-
<TargetFrameworks>netstandard2.0;netstandard2.1;net45;net6</TargetFrameworks>
98
<Title>FSharpPlus</Title>
109
<AssemblyName>FSharpPlus</AssemblyName>
1110
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix)</Version>
@@ -24,11 +23,14 @@
2423
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
2524
<Configurations>Debug;Release;Fable;Fable3;Test</Configurations>
2625
<Platforms>AnyCPU</Platforms>
27-
<LangVersion>6.0</LangVersion>
26+
<LangVersion>8.0</LangVersion>
27+
<LangVersion Condition=" '$(Configuration)' == 'Fable' OR '$(Configuration)' == 'Fable3' ">6.0</LangVersion>
28+
2829
<DefineConstants Condition=" '$(Configuration)' == 'Test'">$(DefineConstants);TEST_TRACE</DefineConstants>
2930
<DefineConstants Condition=" '$(Configuration)' == 'Fable'">$(DefineConstants);FABLE_COMPILER</DefineConstants>
3031
<DefineConstants Condition=" '$(Configuration)' == 'Fable3'">$(DefineConstants);FABLE_COMPILER;FABLE_COMPILER_3</DefineConstants>
3132
<DefineConstants Condition=" '$(Configuration)' == 'Fable4'">$(DefineConstants);FABLE_COMPILER;FABLE_COMPILER_4</DefineConstants>
33+
<TargetFrameworks>netstandard2.0;netstandard2.1;net45;net6.0;net8.0</TargetFrameworks>
3234
<!--<OutputPath>..\..\bin</OutputPath>-->
3335
</PropertyGroup>
3436
<ItemGroup>

tests/FSharpPlus.Tests/FSharpPlus.Tests.fsproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<FscToolExe>$(FSC_ExePathCompilerBuild)</FscToolExe>
66
</PropertyGroup>
77
<PropertyGroup>
8-
<TargetFrameworks>net6.0;net462</TargetFrameworks>
98
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
109
<LangVersion Condition=" '$(Configuration)' == 'Fable' OR '$(Configuration)' == 'Fable3' ">6.0</LangVersion>
1110
<IsPackable>false</IsPackable>
1211
<Configurations>Debug;Release;Fable;Test</Configurations>
1312
<Platforms>AnyCPU</Platforms>
1413
<DefineConstants Condition=" '$(Configuration)' == 'Test'">$(DefineConstants);TEST_TRACE</DefineConstants>
1514
<DefineConstants Condition=" '$(Configuration)' == 'Fable'">$(DefineConstants);FABLE_COMPILER</DefineConstants>
15+
<TargetFrameworks>net462;net6.0;net7.0;net8.0</TargetFrameworks>
1616
</PropertyGroup>
1717
<ItemGroup>
1818
<Compile Include="Helpers.fs" />
@@ -50,8 +50,7 @@
5050
</ItemGroup>
5151
<ItemGroup>
5252
<PackageReference Include="System.Runtime" Version="4.3.1" />
53-
<PackageReference Update="FSharp.Core" Version="4.6.2" Condition=" '$(TargetFramework)' == 'net45'" />
54-
<PackageReference Update="FSharp.Core" Version="6.0.6" Condition=" '$(TargetFramework)' != 'net45'" />
53+
<PackageReference Update="FSharp.Core" Version="6.0.6" />
5554
<PackageReference Include="MathNet.Numerics.FSharp" Version="4.8.1" />
5655
<PackageReference Include="NUnit" Version="3.13.3" />
5756
<PackageReference Include="FsCheck" Version="2.16.5" />

tests/FSharpPlus.Tests/General.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,7 @@ module Memoization =
19451945

19461946
let f x = printfn "calculating"; effs.Add "f"; string x
19471947
let g x (y:string) z : uint32 = printfn "calculating"; effs.Add "g"; uint32 (x * int y + int z)
1948-
let h x y z = printfn "calculating"; effs.Add "h"; new System.DateTime (x, y, z)
1948+
let h (x: int) (y: int) (z: int) = printfn "calculating"; effs.Add "h"; new System.DateTime (x, y, z)
19491949
let sum2 (a:int) = printfn "calculating"; effs.Add "sum2"; (+) a
19501950
let sum3 a (b:int) c = printfn "calculating"; effs.Add "sum3"; a + b + c
19511951
let sum4 a b c d : int = printfn "calculating"; effs.Add "sum4"; a + b + c + d

tests/FSharpPlusFable.Tests/FSharpTests/General.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ let memoization = testList "Memoization" [
311311

312312
let f x = printfn "calculating"; effs.Add "f"; string x
313313
let g x (y:string) z : uint32 = printfn "calculating"; effs.Add "g"; uint32 (x * int y + int z)
314-
let h x y z = printfn "calculating"; effs.Add "h"; new System.DateTime (x, y, z)
314+
let h (x: int) (y: int) (z: int) = printfn "calculating"; effs.Add "h"; new System.DateTime (x, y, z)
315315
let sum2 (a:int) = printfn "calculating"; effs.Add "sum2"; (+) a
316316
let sum3 a (b:int) c = printfn "calculating"; effs.Add "sum3"; a + b + c
317317
let sum4 a b c d : int = printfn "calculating"; effs.Add "sum4"; a + b + c + d

tests/FSharpPlusFable.Tests/FSharpTests/General/Alternative.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,4 @@ let alternative = testList "Alternative" [
128128
#endif
129129
)
130130
#endif
131-
]
131+
]

tests/FSharpPlusFable.Tests/FSharpTests/General/Applicative.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ let applicative = testList "Applicative" [
115115
let r3 = lift2 (+) a3 b3
116116
Assert.AreEqual ("Here's the state SHere's the other state S", (ReaderT.run r3 "S" |> Async.RunSynchronously)))
117117
#endif
118-
]
118+
]

tests/FSharpPlusFable.Tests/FSharpTests/General/Collections.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,5 +261,5 @@ let collections = testList "Collections" [
261261

262262
let m = choose Some ((ofSeq :seq<_*_> -> Map<_,_>) (seq ["a", 1; "b", 2]))
263263
Assert.IsInstanceOf<Option<Map<string,int>>> (Some m))
264-
#endif
265-
]
264+
#endif
265+
]

tests/FSharpPlusFable.Tests/FSharpTests/General/Foldable.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,5 +337,5 @@ let foldable = testList "Foldable" [
337337
equal None sb'
338338
())
339339
#endif
340-
]
340+
]
341341

0 commit comments

Comments
 (0)