|
module Data.Vector.Unboxed ( |
|
-- * Unboxed vectors |
|
Vector(V_UnboxAs, V_UnboxViaPrim), MVector(..), Unbox, |
|
module Data.Vector.Unboxed.Mutable ( |
|
-- * Mutable vectors of primitive types |
|
MVector(..), IOVector, STVector, Unbox, |
I was confused as to why Vector data instances are not exposed but MVector instances are.
Then I found #49 (comment) which explains why exposing them is unsafe, which is fair. But then there is no reason to expose the MVector instances. This wasn't answered in #49.
I would expect this to consistent between Vector and MVector. Or perhaps this issue is known but the MVector instances are not hidden to avoid breakage?
vector/vector/src/Data/Vector/Unboxed.hs
Lines 61 to 63 in 6b8bbc3
vector/vector/src/Data/Vector/Unboxed/Mutable.hs
Lines 17 to 19 in 6b8bbc3
I was confused as to why
Vectordata instances are not exposed butMVectorinstances are.Then I found #49 (comment) which explains why exposing them is unsafe, which is fair. But then there is no reason to expose the
MVectorinstances. This wasn't answered in #49.I would expect this to consistent between
VectorandMVector. Or perhaps this issue is known but theMVectorinstances are not hidden to avoid breakage?