Releases: haskell/primitive
v0.8.0.0
Changes in version 0.8.0.0
-
Add
resizeSmallMutableArray
that wrapsresizeSmallMutableArray#
from
GHC.Exts
. -
New module
Data.Primitive.PrimVar
. This is essentiallyPrimArray
with
element length 1. For types withPrim
instances, this is a drop-in
replacement forMutVar
with 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
,indexCharArray
for operating on
8-bit characters in a byte array. -
When building with
base-4.17
and newer, re-export theByteArray
and
MutableByteArray
types frombase
instead of defining them in this
library. This does not change the user-facing interface of
Data.Primitive.ByteArray
. -
Add
keepAlive
that wrapskeepAlive#
for GHC 9.2 and newer. It
falls back to usingtouch
for older GHCs.