Skip to content

Commit

Permalink
remove Ply and update to FSharp 6
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAngryByrd committed Jan 30, 2024
1 parent 8b53097 commit 2564505
Show file tree
Hide file tree
Showing 29 changed files with 107 additions and 1,162 deletions.
8 changes: 2 additions & 6 deletions paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ storage: none
nuget Microsoft.SourceLink.GitHub prerelease copy_local: true




group NetStandard2
source https://api.nuget.org/v3/index.json
lowest_matching: true
strategy: min
nuget FSharp.Core >= 4.7.2
nuget Ply
nuget FSharp.Core >= 6.0.1
nuget Hopac
nuget FSharp.Control.AsyncSeq
nuget Fable.Core >= 4.2.0
Expand All @@ -28,7 +25,7 @@ group NetStandard2_1
source https://api.nuget.org/v3/index.json
lowest_matching: true
strategy: min
nuget FSharp.Core >= 7.0.0
nuget FSharp.Core >= 6.0.1
nuget Hopac
nuget FSharp.Control.AsyncSeq
nuget IcedTasks >= 0.7.0
Expand All @@ -50,7 +47,6 @@ nuget Fable.Core
nuget Fable.Mocha
nuget Fable.Python
nuget Fable.Pyxpecto
nuget Ply

group Benchmarks
source https://api.nuget.org/v3/index.json
Expand Down
16 changes: 4 additions & 12 deletions paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -863,16 +863,13 @@ NUGET
FSharp.Control.AsyncSeq (3.2.1)
FSharp.Core (>= 4.7.2)
Microsoft.Bcl.AsyncInterfaces (>= 5.0)
FSharp.Core (4.7.2)
FSharp.Core (6.0.1)
Hopac (0.5.1)
FSharp.Core (>= 4.5.2)
Microsoft.Bcl.AsyncInterfaces (6.0)
System.Threading.Tasks.Extensions (>= 4.5.4) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netstandard2.1)) (== netstandard2.0)
Ply (0.3.1)
FSharp.Core (>= 4.6.2)
System.Threading.Tasks.Extensions (>= 4.5.4)
System.Runtime.CompilerServices.Unsafe (6.0) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netcoreapp2.1)) (&& (== net6.0) (< netstandard1.0)) (&& (== net6.0) (< netstandard2.0)) (&& (== net6.0) (>= wp8)) (== netstandard2.0)
System.Threading.Tasks.Extensions (4.5.4)
System.Runtime.CompilerServices.Unsafe (6.0) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netcoreapp2.1) (< netstandard2.1)) (&& (== net6.0) (< netstandard1.0)) (&& (== net6.0) (< netstandard2.0)) (&& (== net6.0) (>= wp8)) (== netstandard2.0)
System.Threading.Tasks.Extensions (4.5.4) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netstandard2.1)) (== netstandard2.0)
System.Runtime.CompilerServices.Unsafe (>= 4.5.3) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netcoreapp2.1)) (&& (== net6.0) (< netstandard1.0)) (&& (== net6.0) (< netstandard2.0)) (&& (== net6.0) (>= wp8)) (== netstandard2.0)

GROUP NetStandard2_1
Expand Down Expand Up @@ -932,9 +929,6 @@ NUGET
Mono.Cecil (0.11.5) - restriction: >= net6.0
Newtonsoft.Json (13.0.3) - restriction: >= netcoreapp3.1
NuGet.Frameworks (6.8) - restriction: >= netcoreapp3.1
Ply (0.3.1)
FSharp.Core (>= 4.6.2) - restriction: >= netstandard2.0
System.Threading.Tasks.Extensions (>= 4.5.4) - restriction: >= netstandard2.0
System.Buffers (4.5.1) - restriction: || (&& (>= monoandroid) (>= netcoreapp3.1) (< netstandard1.1)) (&& (< monoandroid) (>= netcoreapp3.1) (< netstandard1.1)) (&& (< monoandroid) (>= netcoreapp3.1) (< netstandard2.0)) (&& (>= monotouch) (>= netcoreapp3.1)) (&& (>= net45) (>= netcoreapp3.1) (< netstandard2.0)) (&& (>= net461) (>= netcoreapp3.1)) (&& (>= net462) (>= netcoreapp3.1)) (&& (< net6.0) (>= netcoreapp3.1) (>= xamarinios)) (&& (< net6.0) (>= netcoreapp3.1) (>= xamarinmac)) (&& (< net6.0) (>= netcoreapp3.1) (>= xamarintvos)) (&& (< net6.0) (>= netcoreapp3.1) (>= xamarinwatchos)) (&& (< netcoreapp2.0) (>= netcoreapp3.1)) (&& (>= netcoreapp3.1) (< netstandard1.1) (>= win8)) (&& (>= netcoreapp3.1) (< netstandard2.0) (>= wpa81))
System.Collections.Immutable (8.0) - restriction: >= netcoreapp3.1
System.Runtime.CompilerServices.Unsafe (>= 6.0) - restriction: || (>= net462) (&& (>= net6.0) (< net7.0)) (&& (< net6.0) (>= netstandard2.0))
Expand All @@ -944,9 +938,7 @@ NUGET
System.Reflection.Metadata (8.0) - restriction: >= netcoreapp3.1
System.Collections.Immutable (>= 8.0) - restriction: || (>= net462) (>= netstandard2.0)
System.Memory (>= 4.5.5) - restriction: || (>= net462) (&& (< net6.0) (>= netstandard2.0))
System.Runtime.CompilerServices.Unsafe (6.0) - restriction: || (&& (>= monoandroid) (>= netcoreapp3.1) (< netstandard1.1)) (&& (< monoandroid) (< netcoreapp2.1) (>= netcoreapp3.1)) (&& (< monoandroid) (>= netcoreapp3.1) (< netstandard1.1)) (&& (< monoandroid) (>= netcoreapp3.1) (< netstandard2.0)) (&& (< monoandroid) (< netstandard1.0) (>= netstandard2.0) (< win8)) (&& (>= monotouch) (>= netcoreapp3.1)) (&& (>= net45) (>= netcoreapp3.1) (< netstandard2.0)) (&& (< net45) (< netcoreapp2.1) (>= netstandard2.0) (< xamarinios) (< xamarinmac) (< xamarintvos) (< xamarinwatchos)) (&& (>= net461) (>= netcoreapp3.1)) (&& (>= net461) (>= netstandard2.0)) (&& (>= net462) (>= net6.0)) (&& (>= net462) (>= netcoreapp3.1)) (&& (>= net6.0) (< net7.0)) (&& (< net6.0) (>= netcoreapp3.1) (>= xamarinios)) (&& (< net6.0) (>= netcoreapp3.1) (>= xamarinmac)) (&& (< net6.0) (>= netcoreapp3.1) (>= xamarintvos)) (&& (< net6.0) (>= netcoreapp3.1) (>= xamarinwatchos)) (&& (< netcoreapp2.0) (>= netcoreapp3.1)) (&& (>= netcoreapp3.1) (< netstandard1.1) (>= win8)) (&& (>= netcoreapp3.1) (< netstandard2.0) (>= wpa81)) (&& (>= netcoreapp3.1) (>= uap10.1)) (&& (< netstandard1.0) (>= netstandard2.0) (>= win8)) (&& (>= netstandard2.0) (>= wp8))
System.Threading.Tasks.Extensions (4.5.4) - restriction: >= netstandard2.0
System.Runtime.CompilerServices.Unsafe (>= 4.5.3) - restriction: || (&& (< monoandroid) (< monotouch) (< net45) (>= netstandard1.0) (< netstandard2.0) (< win8) (< wpa81) (< xamarintvos) (< xamarinwatchos)) (&& (< monoandroid) (< netstandard1.0) (>= portable-net45+win8+wp8+wpa81) (< win8)) (&& (>= net45) (< netstandard2.0)) (&& (< net45) (< netcoreapp2.1) (>= netstandard2.0) (< xamarinios) (< xamarinmac) (< xamarintvos) (< xamarinwatchos)) (>= net461) (&& (< netstandard1.0) (>= win8)) (&& (< netstandard2.0) (>= wpa81)) (>= wp8)
System.Runtime.CompilerServices.Unsafe (6.0) - restriction: || (&& (>= monoandroid) (>= netcoreapp3.1) (< netstandard1.1)) (&& (< monoandroid) (< netcoreapp2.1) (>= netcoreapp3.1)) (&& (< monoandroid) (>= netcoreapp3.1) (< netstandard1.1)) (&& (< monoandroid) (>= netcoreapp3.1) (< netstandard2.0)) (&& (>= monotouch) (>= netcoreapp3.1)) (&& (>= net45) (>= netcoreapp3.1) (< netstandard2.0)) (&& (>= net461) (>= netcoreapp3.1)) (&& (>= net462) (>= net6.0)) (&& (>= net462) (>= netcoreapp3.1)) (&& (>= net6.0) (< net7.0)) (&& (< net6.0) (>= netcoreapp3.1) (>= xamarinios)) (&& (< net6.0) (>= netcoreapp3.1) (>= xamarinmac)) (&& (< net6.0) (>= netcoreapp3.1) (>= xamarintvos)) (&& (< net6.0) (>= netcoreapp3.1) (>= xamarinwatchos)) (&& (< netcoreapp2.0) (>= netcoreapp3.1)) (&& (>= netcoreapp3.1) (< netstandard1.1) (>= win8)) (&& (>= netcoreapp3.1) (< netstandard2.0) (>= wpa81)) (&& (>= netcoreapp3.1) (>= uap10.1))
YoloDev.Expecto.TestSdk (0.14.3)
Expecto (>= 10.0 < 11.0) - restriction: >= net6.0
FSharp.Core (>= 7.0.200) - restriction: >= net6.0
Expand Down
4 changes: 3 additions & 1 deletion src/FsToolkit.ErrorHandling.AsyncSeq/paket.references
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Microsoft.SourceLink.GitHub

group NetStandard2
FSharp.Core
FSharp.Control.AsyncSeq
group NetStandard2_1
FSharp.Control.AsyncSeq
FSharp.Core
FSharp.Control.AsyncSeq
4 changes: 3 additions & 1 deletion src/FsToolkit.ErrorHandling.JobResult/paket.references
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Microsoft.SourceLink.GitHub

group NetStandard2
FSharp.Core
Hopac
group NetStandard2_1
Hopac
FSharp.Core
Hopac
3 changes: 0 additions & 3 deletions src/FsToolkit.ErrorHandling.TaskResult/List.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ namespace FsToolkit.ErrorHandling

open System.Threading.Tasks
open FsToolkit.ErrorHandling
#if NETSTANDARD2_0
open FSharp.Control.Tasks.Affine
#endif

[<RequireQualifiedAccess>]
module List =
Expand Down
3 changes: 0 additions & 3 deletions src/FsToolkit.ErrorHandling.TaskResult/Result.fs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
namespace FsToolkit.ErrorHandling

open System.Threading.Tasks
#if NETSTANDARD2_0
open FSharp.Control.Tasks.Affine
#endif

module Result =

Expand Down
8 changes: 4 additions & 4 deletions src/FsToolkit.ErrorHandling.TaskResult/Task.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ namespace FsToolkit.ErrorHandling

open System.Threading.Tasks

#if NETSTANDARD2_0
open FSharp.Control.Tasks.Affine
#endif

[<RequireQualifiedAccess>]
module Task =
Expand All @@ -18,12 +15,13 @@ module Task =
return! f x
}

#if NETSTANDARD2_1 || NET6_0_OR_GREATER
let inline bindV ([<InlineIfLambda>] f: 'a -> Task<'b>) (x: ValueTask<'a>) =
task {
let! x = x
return! f x
}

#endif
let inline apply f x =
bind (fun f' -> bind (fun x' -> singleton (f' x')) x) f

Expand All @@ -34,12 +32,14 @@ module Task =
>> singleton
)

#if NETSTANDARD2_1 || NET6_0_OR_GREATER
let inline mapV ([<InlineIfLambda>] f) x =
x
|> bindV (
f
>> singleton
)
#endif

let inline map2 ([<InlineIfLambda>] f) x y = (apply (apply (singleton f) x) y)

Expand Down
4 changes: 1 addition & 3 deletions src/FsToolkit.ErrorHandling.TaskResult/TaskOption.fs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
namespace FsToolkit.ErrorHandling

open System.Threading.Tasks
#if NETSTANDARD2_0
open FSharp.Control.Tasks.Affine
#endif


[<RequireQualifiedAccess>]
module TaskOption =
Expand Down
Loading

0 comments on commit 2564505

Please sign in to comment.