haskell / haskell/attoparsec

Add Eq instance for Data.Attoparsec.ByteString.Lazy.Result

Open
#161 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
531
Forks
98
PR merge metrics
No merged PRs in 30d

Description

An `Eq` instance would be useful e.g. for parser unit tests, testing not only the result of the parse but that the expected amount of left-over input is present.

This would only be the for the lazy `Result` type because `IResult` can contain a function:
```
Partial :: (i -> IResult i r) -> IResult i r
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.