haskell/primitive

Missing createPrimArray and createByteArray

Closed this issue · 1 comments

createArray and createSmallArray are handy functions, but the equivalents seems to be missing for PrimArray and ByteArray.

createArray
:: Int
-> a
-> (forall s. MutableArray s a -> ST s ())
-> Array a

createSmallArray
:: Int
-> a
-> (forall s. SmallMutableArray s a -> ST s ())
-> SmallArray a

I agree. I would take a PR adding these.