Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Seq)!: Add sequenceResultA, align sequenceResultM #255

Merged
merged 7 commits into from
Apr 6, 2024

Conversation

bartelink
Copy link
Contributor

@bartelink bartelink commented Feb 15, 2024

Implements #254

  • Add Seq.sequenceResultA
  • align signature of sequenceResultM with that of sequenceResultA (yield an Array, rather than accumulating in a list and upcasting via List.toSeq
  • add docs for sequenceResultM
  • remove FSharp.xml content file (noise when searching in Rider)

@bartelink bartelink force-pushed the array-sequence branch 2 times, most recently from 4a13d62 to f23dd0e Compare February 15, 2024 00:14
@bartelink bartelink mentioned this pull request Feb 15, 2024
@bartelink bartelink changed the title refactor(Seq.sequenceResultM)!: Change Ok to Array feat(Seq)!: Add sequenceResultA, align sequenceResultM Feb 15, 2024
@bartelink
Copy link
Contributor Author

bartelink commented Feb 15, 2024

Open to removing anything you consider an overstep - I'm not enjoying the fantomas ruleset so there is some letter of the law interpretations.

Please push back on anything that's not right!

have not actually fsi'd the doc samples, or looked at the gitbook

@bartelink bartelink marked this pull request as ready for review February 15, 2024 01:46
paket.dependencies Outdated Show resolved Hide resolved
paket.dependencies Outdated Show resolved Hide resolved
Copy link
Collaborator

@TheAngryByrd TheAngryByrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ Thanks for this!. Left some feedback.

src/FsToolkit.ErrorHandling/Seq.fs Show resolved Hide resolved
@bartelink
Copy link
Contributor Author

I'd prefer not to make breaking changes here unless you want to retarget for #249

as mentioned in #254 I'm happy either way.

Adding it is not time-sensitive for me, so I'll leave it entirely up to you whether you want
a) this PR based on v5
b) remove this diff and add a PR that can be merged later that does the contract change

I guess my slight preference is to stay with one PR, but I'm a maintainer too so I'd prefer you to make the call.

@bartelink bartelink changed the base branch from master to v5 February 15, 2024 23:20
@bartelink bartelink force-pushed the array-sequence branch 2 times, most recently from 3a5fe58 to d088226 Compare February 15, 2024 23:49
@@ -4,10 +4,12 @@
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable>
<!-- <NoWarn>NU1904</NoWarn>-->
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a new vulnerability that breaks the build
I see you have 1903 in the build props - if you fix that, I'l rebase off that as its obv not ideal to have this in the PR

@bartelink
Copy link
Contributor Author

The build wasn't happy for reasons I could not discern - happy to rebase or adjust this any time; just ping
By the same token, if you want to make adjustments and/or just merge it, that's fine too

@TheAngryByrd TheAngryByrd merged commit 4561d77 into demystifyfp:v5 Apr 6, 2024
@bartelink bartelink deleted the array-sequence branch April 6, 2024 16:33
TheAngryByrd pushed a commit that referenced this pull request Dec 7, 2024
* Roll on '24

* refactor(Seq.sequenceResultM)!: Change Ok to Array

* docs: sequenceResultM

* feat(Seq): sequenceResultA

* f sequenceResultM docs

* Supress compile error

* Fix proposed version
TheAngryByrd added a commit that referenced this pull request Dec 7, 2024
* Remove Ply and update to FSharp 6 (#248)

* remove Ply and update to FSharp 6

* Cleanup dependencies

* Fix fsharp.core warning

* Don't build so much

* Asyncinterfaces (#250)

* use  Microsoft.Bcl.AsyncInterfaces

* Updated IcedTasks to 0.11.0

* Fix for fable

* Net8 (#251)

* net8 tfm

* Update README

* Fix CI cancellation issues

* Build on  macos-14

* 205 overload resolution (#252)

* Missed this in net8 additions

* Fix overload resolution issues in Core

* Fix overload resolution issues in Tasks/Hopac

* Fix overload resolution issues in CancellableTaskResult

* WIP: TaskValidtionCE

* Wip merge sources

* Fix MergeSources for CTValidation

* cleanup

* Ensure IAsyncDisposable tests

* ignore nuget stuff

* feat(Seq)!: Add sequenceResultA, align sequenceResultM (#255)

* Roll on '24

* refactor(Seq.sequenceResultM)!: Change Ok to Array

* docs: sequenceResultM

* feat(Seq): sequenceResultA

* f sequenceResultM docs

* Supress compile error

* Fix proposed version

* Cleanup build

* 209 remove MergeSources (and!) from some implementations (#261)

* Remove MergeSources from resultCE

* Remove MergeSources from AsyncResult

* Remove MergeSources from ResultOption

* Fixup resultOption docs

* Remove MergeSources from OptionCE

* Remove MergeSources from ValueOptionCE

* remove MergeSources Option/ValueOption

* MSBuild.StructuredLogger update

* disable binlog for fake

* Many updates

* fix residual rebase artifacts

* Merge TaskResult into Core lib (#285)

* silence FS3511

---------

Co-authored-by: Ruben Bartelink <[email protected]>
TheAngryByrd added a commit that referenced this pull request Dec 7, 2024
- BREAKING: [Remove Ply and update to FSharp 6](#248) Credits @TheAngryByrd
- BREAKING: [Remove MergeSources (and!) from some implementations](#261)  Credits @TheAngryByrd
- BREAKING: [Merge TaskResult into Core library](#285) Credits @TheAngryByrd
- This means FsToolkit.ErrorHandling.TaskResult is no longer a separate package and will not be updated. It is now part of the core library.
- [Use Microsoft.Bcl.AsyncInterfaces in netstandard2.0 (Allows IAsyncDisposable and IAsyncEnumerable)](#250) Credits @TheAngryByrd
- [Build against Net8](#251) Credits @TheAngryByrd
- [Fix Overload Resolution to Align to Computation Expression used](#252) Credits @TheAngryByrd
- [refactor!: Seq.sequenceResultM returns Array instead of seq](#255) Credits @bartelink
- [feat(Seq): sequenceResultA](#255) Credits @bartelink
-
TheAngryByrd added a commit that referenced this pull request Dec 21, 2024
- BREAKING: [Remove Ply and update to FSharp 6](#248) Credits @TheAngryByrd
- BREAKING: [Remove MergeSources (and!) from some implementations like Result](#261)  Credits @TheAngryByrd
- BREAKING: [Merge TaskResult into Core library](#285) Credits @TheAngryByrd
- This means FsToolkit.ErrorHandling.TaskResult is no longer a separate package and will not be updated. It is now part of the core library.
- BREAKING: [Rename retn to singleton](#287) Credits @1eyewonder
- [Use Microsoft.Bcl.AsyncInterfaces in netstandard2.0 (Allows IAsyncDisposable and IAsyncEnumerable)](#250) Credits @TheAngryByrd
- [Build against Net8](#251) Credits @TheAngryByrd
- [Fix Overload Resolution to Align to Computation Expression used](#252) Credits @TheAngryByrd
- [refactor!: Seq.sequenceResultM returns Array instead of seq](#255) Credits @bartelink
- [feat(Seq): sequenceResultA](#255) Credits @bartelink
- [Updated uses of Seq.append](#290) Credits @1eyewonder
-
TheAngryByrd added a commit that referenced this pull request Jan 6, 2025
- BREAKING: [Remove Ply and update to FSharp 6](#248) Credits @TheAngryByrd
- BREAKING: [Remove MergeSources (and!) from some implementations like Result](#261)  Credits @TheAngryByrd
- BREAKING: [Merge TaskResult into Core library](#285) Credits @TheAngryByrd
- This means FsToolkit.ErrorHandling.TaskResult is no longer a separate package and will not be updated. It is now part of the core library.
- BREAKING: [Rename retn to singleton](#287) Credits @1eyewonder
- [Use Microsoft.Bcl.AsyncInterfaces in netstandard2.0 (Allows IAsyncDisposable and IAsyncEnumerable)](#250) Credits @TheAngryByrd
- [Build against Net8](#251) Credits @TheAngryByrd
- [Fix Overload Resolution to Align to Computation Expression used](#252) Credits @TheAngryByrd
- [refactor!: Seq.sequenceResultM returns Array instead of seq](#255) Credits @bartelink
- [feat(Seq): sequenceResultA](#255) Credits @bartelink
- [Updated uses of Seq.append](#290) Credits @1eyewonder
- [Add Option.traverseAsync and Option.sequenceAsync](#298 (comment)) Credits @tw0po1nt
- [Add Require and Check helper methods](#295) Credits @PI-Gorbo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants