-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add support for vectors/arrays #2
Comments
We can't actually infer anything for
|
Same goes for primitive vectors. |
As it turns out, we can in principle do better for unboxed arrays; I figured out the technical details of how to deal with the data family in 76c70e1 . However, unfortunately it turns out all of the instances of the |
Opened haskell/vector#391 to ask about #2 (comment) . |
WIP PR at #22 . |
Boxed
vectors are already supported, but adding support for the other flavours is a bit trickier:Storable
andPrimitive
vectors have aStorable
constraint on the element type, and we have noStorable
instance forVoid
. We could define an oprhan, but even then I'm not sure that casting an emptyVector a
toVector Void
is safe. Needs a bit of thought.Unboxed
is a data family; not necessarily a problem, just requires a lot of cases.The text was updated successfully, but these errors were encountered: