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
Comments
Thanks for the hint regarding |
Thanks for tickling this ticket. These definitely should be improved. !
…On Sat, Nov 30, 2019 at 7:19 PM Simon Jakobi ***@***.***> wrote:
Thanks for the hint regarding slice! I had hoped that I could find info
on this on the issue tracker! :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#213?email_source=notifications&email_token=AAABBQRWO4ZQU4WNJFGOWFDQWL7JXA5CNFSM4E73DLQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFQWZFQ#issuecomment-560032918>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABBQUCIEZACMB6JDMBJHTQWL7JXANCNFSM4E73DLQA>
.
|
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
Finally fixes haskell#213
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
Finally fixes haskell#213
Shimuuar
added a commit
to Shimuuar/vector
that referenced
this issue
Jun 7, 2020
Finally fixes haskell#213
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
MVector
is exported concretely, but its three fields are undocumented. In particular, it's not obvious to users whether the secondInt
is an offset or a length.slice
doesn't document what itsInt
arguments mean.Data.Vector.Generic.basicUnsafeSlice
lacks that documentation as well. The explanation should be copied fromData.Vector
in each case.init
,tail
,take
,drop
, andsplitAt
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 betweenunsafeNew
andnew
is thatnew
checks that the requested size is sensible.The text was updated successfully, but these errors were encountered: