haskell-streaming / haskell-streaming/streaming-bytestring

chunksOf :: Int -> ByteString m r -> Stream (Of ByteString) m r

Open
#1 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haskell
Stars
19
Forks
12
PR merge metrics
No merged PRs in 30d

Description

What do you think about adding a function:

chunksOf :: Int -> Data.ByteString.Streaming.ByteString m r -> Stream (Of Data.ByteString.ByteString) m r

This would yield consecutive chunks of n bytes as a strict bytestring. If the ByteString doesn't have n bytes, it ceases to yield and returns.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

The proposed entry points are Data.ByteString.Streaming.ByteString and Data.ByteString.ByteString, with the requested chunksOf signature shown in the issue. Start by locating the streaming ByteString implementation and related stream operations, then review the eight-comment discussion for settled semantics. Done means the agreed API yields consecutive strict chunks and handles an input shorter than n as specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
stream-processing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.