Skip to content

docs(TaskEither): clarify foldW vs matchW signature differences#1967

Open
aymenhmaidiwastaken wants to merge 1 commit into
gcanti:masterfrom
aymenhmaidiwastaken:fix/task-either-jsdoc-foldw-matchw
Open

docs(TaskEither): clarify foldW vs matchW signature differences#1967
aymenhmaidiwastaken wants to merge 1 commit into
gcanti:masterfrom
aymenhmaidiwastaken:fix/task-either-jsdoc-foldw-matchw

Conversation

@aymenhmaidiwastaken

Copy link
Copy Markdown
Contributor

Summary

  • Clarify that matchW handlers return plain values (automatically lifted into Task), while foldW (alias of matchEW) handlers must return Task values
  • Add a note highlighting the important behavioral difference from Either.foldW, which expects plain-value handlers — this is a common source of confusion

Closes #1955

Explain that matchW handlers return plain values (auto-lifted to Task),
while foldW handlers must return Task values. Also highlight the
important difference from Either.foldW which expects plain-value handlers.

Closes gcanti#1955
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.

discrepancy in description for Foldw/MatchW for Either vs TaskEither

1 participant