Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make D.B.Lazy.zipWith properly lazy #668

Merged
merged 2 commits into from
Apr 9, 2024
Merged

Conversation

clyring
Copy link
Member

@clyring clyring commented Mar 31, 2024

As a bonus, the new code is easier to read and doesn't trigger a spurious incomplete-pattern-match warning. (Or finding the bug can be seen as a bonus for cleaning up that messy code.)

Fixes #667.

As a bonus, the new code is easier to read and doesn't trigger
a spurious incomplete-pattern-match warning.  (Or finding the
bug can be seen as a bonus for cleaning up that messy code.)

Fixes haskell#667.
Data/ByteString/Lazy.hs Outdated Show resolved Hide resolved
@clyring clyring merged commit 259a0c2 into haskell:master Apr 9, 2024
24 of 26 checks passed
@clyring clyring added this to the 0.12.2.0 milestone Apr 9, 2024
Bodigrim pushed a commit that referenced this pull request Oct 15, 2024
* Make D.B.Lazy.zipWith properly lazy

As a bonus, the new code is easier to read and doesn't trigger
a spurious incomplete-pattern-match warning.  (Or finding the
bug can be seen as a bonus for cleaning up that messy code.)

Fixes #667.

* Lazy.zipWith: evaluate the 'unsafeHead' calls eagerly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lazy zip is stricter than expected
2 participants