Skip to content

Source packages for IcedTasks, JobResult, and AsyncSeq (after feedback on FsToolkit.ErrorHandling.Sources) #388

Closed

Description

@TheAngryByrd

Issue drafted by Claude Code.

Problem

6.0.0-beta007 adds FsToolkit.ErrorHandling.Sources (#381, #382). It delivers the source code of the main FsToolkit.ErrorHandling package as files that compile inside the consumer's project, with a configurable namespace and visibility.

The three other packages have no source package:

  • FsToolkit.ErrorHandling.IcedTasks (depends on IcedTasks)
  • FsToolkit.ErrorHandling.JobResult (depends on Hopac)
  • FsToolkit.ErrorHandling.AsyncSeq (depends on FSharp.Control.AsyncSeq)

A project that uses FsToolkit.ErrorHandling.Sources and one of these packages gets two copies of the main library: the source copy and the binary that the sibling package depends on.

Decision first: collect feedback on FsToolkit.ErrorHandling.Sources

Do not build these packages until users of FsToolkit.ErrorHandling.Sources ask for them. Please comment on this issue if you use the Sources package, and tell us:

  • Which sibling package you need as source, if any.
  • Your target frameworks, SDK version, and the FsToolkitErrorHandlingNamespace and FsToolkitErrorHandlingVisibility values that you use.
  • Whether you consume it from Fable or through Paket. Neither is tested today (see the package README).
  • Any problem with the generated files, the FSTKSRC001 warning, or the property validation.

What a sibling source package needs

If feedback shows demand, each sibling source package must:

  1. Depend on FsToolkit.ErrorHandling.Sources instead of FsToolkit.ErrorHandling, and use the same FsToolkitErrorHandlingNamespace and FsToolkitErrorHandlingVisibility properties, so that its files compile against the consumer's copy of the main library.
  2. Keep the third-party dependency (IcedTasks, Hopac, or FSharp.Control.AsyncSeq) as a normal package dependency.
  3. Reuse the generator in build/SourcesPackage.fs and the fail-closed rules. The generator must also replace open FsToolkit.ErrorHandling and the module references to the main library.
  4. Get the same gates as SourcesTest: the full test project of the sibling package against the packed source package, a strict consumer build, the dependency-group check against the binary sibling package, and the docs drift check.

Acceptance criteria

  • Feedback on FsToolkit.ErrorHandling.Sources shows demand for at least one sibling package.
  • For each requested package: a .Sources package that meets points 1 to 4 above.
  • Each new package has a page in gitbook/ and a line in RELEASE_NOTES.md.

Activity

  1. TheAngryByrd commented on Nov 20, 2026

    @TheAngryByrd
    CollaboratorAuthor

    I don't think this makes sense unless the upstream packages also have Sources versions. Closing for now.

  2. TheAngryByrd commented on Nov 20, 2026

    @TheAngryByrd
    CollaboratorAuthor

    Scope note: #393 removes FsToolkit.ErrorHandling.JobResult (issue #390), so a JobResult source package is out of scope if this work starts again.

    🤖 Drafted with Claude Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions