Add common folds in the Stream module itself?

Open
#3,071 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
haskell
Domain
backend

Research direction

Start by reading the Stream module and the existing Fold definitions, especially Fold.drain. The issue proposes adding common folds such as Stream.drain as aliases in the Stream module; decide which folds belong there and check the project’s module API conventions. Done means the chosen aliases are exposed consistently and covered by relevant tests.

Written by the indexing model from the issue text.

Description

aspect:api

Even though it would be redundant, it may be convenient to have - for example, Stream.drain = Stream.fold Fold.drain.

Dominant language
Haskell
Stars
926
Forks
71
Avg merge
6h 49m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from composewell/streamly

All issues in composewell/streamly

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.