Skip to content

Documentation Fix: takeWhile not copy-free - #359

Merged
lehins merged 1 commit into
haskell:masterfrom
gksato:330-takeWhile-docChange
Jan 18, 2021
Merged

lehins merged 1 commit into
haskell:masterfrom
gksato:330-takeWhile-docChange

Conversation

@gksato

@gksato gksato commented Jan 17, 2021 •

Copy link
Copy Markdown
Contributor

Since current implementation of takeWhile is not copy-free,
correct the document to reflect that fact.

I wasn't able to prepare the fix of #330 for this release,
so this PR clarifies the current situation.

See also: #330

@lehins

lehins commented Jan 17, 2021

Copy link
Copy Markdown
Contributor

It is good to update documentation, but I am not really fond of the wording:

Generally speaking, current implementation is not copy-free.

It doesn't tell us why it is not copy free and when it is. I think saying something along the line would at least give a bit of insight into reason:

Current implementation is not copy-free, unless the result vector is fused away.

@gksato

gksato commented Jan 17, 2021

Copy link
Copy Markdown
Contributor Author

Alrighty, I'm amending and force-pushing the fix.

Since current implementation of takeWhile is not copy-free,
correct the document to reflect that fact.

See also: haskell#330
@gksato
gksato force-pushed the 330-takeWhile-docChange branch from 5a049f0 to 63f2f6a Compare January 17, 2021 20:20
@gksato

gksato commented Jan 17, 2021

Copy link
Copy Markdown
Contributor Author

Done!

@lehins lehins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I'd like to give @Shimuuar and/or @Bodigrim a chance to take a look at it too. IMHO it's good to go.

@Shimuuar

Copy link
Copy Markdown
Contributor

LGTM

@lehins
lehins merged commit 4892636 into haskell:master Jan 18, 2021
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.

3 participants