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

Documentation issues in Data.Vector.Mutable #213

Closed
treeowl opened this issue May 15, 2018 · 2 comments
Closed

Documentation issues in Data.Vector.Mutable #213

treeowl opened this issue May 15, 2018 · 2 comments

Comments

@treeowl
Copy link
Contributor

treeowl commented May 15, 2018

MVector is exported concretely, but its three fields are undocumented. In particular, it's not obvious to users whether the second Int is an offset or a length.

slice doesn't document what its Int arguments mean. Data.Vector.Generic.basicUnsafeSlice lacks that documentation as well. The explanation should be copied from Data.Vector in each case.

init, tail, take, drop, and splitAt have no documentation whatsoever, and in particular fail to note that they don't copy the underlying vector. The "unsafe" versions are also completely undocumented.

unsafeNew claims that the vector isn't initialized, but it actually is. Only unboxed vectors can be created uninitialized. The only difference between unsafeNew and new is that new checks that the requested size is sensible.

@sjakobi
Copy link
Member

sjakobi commented Dec 1, 2019

Thanks for the hint regarding slice! I had hoped that I could find info on this on the issue tracker! :)

@cartazio
Copy link
Contributor

cartazio commented Dec 1, 2019 via email

Shimuuar added a commit to Shimuuar/vector that referenced this issue Feb 2, 2020
Shimuuar added a commit to Shimuuar/vector that referenced this issue Feb 2, 2020
Shimuuar added a commit to Shimuuar/vector that referenced this issue Apr 11, 2020
Shimuuar added a commit to Shimuuar/vector that referenced this issue Apr 11, 2020
Shimuuar added a commit to Shimuuar/vector that referenced this issue Jun 7, 2020
@lehins lehins closed this as completed in 669df76 Jun 8, 2020
lehins pushed a commit that referenced this issue Jan 16, 2021
lehins pushed a commit that referenced this issue Jan 16, 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

No branches or pull requests

3 participants