Changes in version 0.8.0.0
-
Add
resizeSmallMutableArraythat wrapsresizeSmallMutableArray#from
GHC.Exts. -
New module
Data.Primitive.PrimVar. This is essentiallyPrimArraywith
element length 1. For types withPriminstances, this is a drop-in
replacement forMutVarwith fewer indirections. -
PrimArray's type argument has been given a nominal role instead of a phantom role.
This is a breaking change. -
Add
readCharArray,writeCharArray,indexCharArrayfor operating on
8-bit characters in a byte array. -
When building with
base-4.17and newer, re-export theByteArrayand
MutableByteArraytypes frombaseinstead of defining them in this
library. This does not change the user-facing interface of
Data.Primitive.ByteArray. -
Add
keepAlivethat wrapskeepAlive#for GHC 9.2 and newer. It
falls back to usingtouchfor older GHCs.