haskell / haskell/binary

Implement a delimiter for Get's bytesRead

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
120
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Basically something like `delimit :: Get a -> Get a` that resets the `bytesRead` counter on the inner `Get`. This would primarily be useful in conjunction with the `isolate` combinator (which can then act undelimited by default, and we can modify it to be delimited if needed) or the alignment combinator I propose in #50.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Get type and its bytesRead handling, then read the isolate combinator and the alignment proposal in #50 for context. Define done as a delimiter that resets the inner Get's bytesRead counter and behaves consistently with isolate and the proposed alignment combinator.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.