haskell-streaming / haskell-streaming/streaming-bytestring
chunksOf :: Int -> ByteString m r -> Stream (Of ByteString) m r
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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