-
Notifications
You must be signed in to change notification settings - Fork 141
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
Drop outdated comment #328
Drop outdated comment #328
Conversation
The Lazy `lines` function has not been `too` strict for some time now. The issue was resolved a day or so after the comment was added, but the comment was inadvertently left behind.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
> prop_lazy = | ||
(L.unpack . head . lazylines $ L.append (L.pack "a\nb\n") (error "failed")) | ||
== | ||
"a" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we possibly add this to the test suite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I ask someone else to pitch in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit reluctant to backport two commits to bytestring-0.11
branch, when we can make do with one. Please just add
prop_lines_lazy = head (LC.lines (LC.append (LC.pack "a\nb\n") undefined)) == LC.pack "a"
to Properties.hs
and mention prop_lines_lazy
in ll_tests
, that's it.
, testProperty "lines_lazy" prop_lines_lazy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* Drop outdated comment The Lazy `lines` function has not been `too` strict for some time now. The issue was resolved a day or so after the comment was added, but the comment was inadvertently left behind. * Add lazy `lines` non-strictness test Co-authored-by: Viktor Dukhovni <[email protected]>
The Lazy
lines
function has not beentoo
strict for sometime now. The issue was resolved a day or so after the comment
was added, but the comment was inadvertently left behind.