-
Notifications
You must be signed in to change notification settings - Fork 139
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
Constructors for immutable unboxed tuple vectors are not exported #504
Comments
In fact |
Thanks! Somehow I did not think this way. I must have thought those functions are just aliases to the ones in vector/vector/internal/unbox-tuple-instances Lines 123 to 130 in eb60526
Actually, in their documentation they are clearly marked |
That's simple puzzle but even simple puzzles don't make good documentation |
See the following export list for
Data.Vector.Unboxed
:vector/vector/src/Data/Vector/Unboxed.hs
Lines 61 to 63 in eb60526
All the constructors for the
MVector
family are exported, which includes constructors for mutable unboxed tuple vectors (e.g.,MV_2
). However, for immutable unboxed tuple vectors, the constructors are private.Currently, to construct an unboxed tuple vector from the two underlying parallel vector without copying, one must go through
MVector
andunsafeFreeze
, which seems a bit weird to me.The text was updated successfully, but these errors were encountered: