Skip to content

Explain how to choose between bind functions - #2602

Merged
sobolevn merged 1 commit into
dry-python:masterfrom
addielaruee:fix/867-choosing-bind
Dec 6, 2026
Merged

sobolevn merged 1 commit into
dry-python:masterfrom
addielaruee:fix/867-choosing-bind

Conversation

@addielaruee

Copy link
Copy Markdown
Contributor

The pointfree guide lists the bind functions, but it leaves the reader to work out which one fits a callback. The new example uses the same validator on a Result and an IOResult. It shows when to use bind_result and what happens when either step fails.

The strict documentation build also caught a malformed link to Hypothesis settings on the base branch. Correcting its markup lets Sphinx publish the guide.

Checklist

  • Reviewed the diff for unrelated changes.
  • Added an executable example covering success, validation failure, and a failure already in the container.
  • Updated the pointfree documentation.
  • Added a changelog entry.

Ran make test, make typesafety, and make -C docs html with warnings treated as errors.

Related issues

Fixes #867

Show how one Result-returning callback composes with Result and IOResult, including both failure paths. Correct the settings link that prevented the strict documentation build from publishing the example.
@codspeed

codspeed Bot commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 note

ℹ️ 1 benchmark has no flamegraph

The flamegraph wasn't generated: the symbols of the profiling trace could not be resolved, because no information about the language frames was collected.

See affected benchmarks

✅ 22 untouched benchmarks


Comparing addielaruee:fix/867-choosing-bind (11695a5) with master (026989c)

Open in CodSpeed

@codecov

codecov Bot commented Dec 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (82ef3ef) to head (11695a5).
⚠️ Report is 688 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##            master     #2602    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           80        82     +2     
  Lines         2485      2700   +215     
  Branches       437        45   -392     
==========================================
+ Hits          2485      2700   +215     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sobolevn
sobolevn merged commit 8400260 into dry-python:master Dec 6, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Improve bind / bind_* docs

2 participants