Add satisfyMaybe
Open
- Dominant language
- Haskell
- Stars
- 531
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
I find odd that attoparsec has
satisfyWith :: (Word8 -> a) -> (a -> Bool) -> Parser a
but not
satisfyMaybe :: (Word8 -> Maybe a) -> Parser a
since that is what I want most of the time.
Also, you can simulate satisfyWith using satisfyMaybe but not the other way round.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating satisfyWith in the attoparsec parser API and review the surrounding combinators. Use the requested signature and behavior as the acceptance criteria: a Word8-to-Maybe function should yield a Parser that accepts Just values and rejects Nothing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100