primitive

This package provides various primitive memory-related operations.

OTHER License

Downloads
490.5K
Stars
114
Committers
44

Bot releases are hidden (Show)

primitive - v0.8.0.0 Latest Release

Published by andrewthad over 1 year ago

Changes in version 0.8.0.0

  • Add resizeSmallMutableArray that wraps resizeSmallMutableArray# from
    GHC.Exts.

  • New module Data.Primitive.PrimVar. This is essentially PrimArray with
    element length 1. For types with Prim instances, this is a drop-in
    replacement for MutVar 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 the ByteArray and
    MutableByteArray types from base instead of defining them in this
    library. This does not change the user-facing interface of
    Data.Primitive.ByteArray.

  • Add keepAlive that wraps keepAlive# for GHC 9.2 and newer. It
    falls back to using touch for older GHCs.

primitive - v0.6.3.0

Published by dolio over 6 years ago

  • Add PrimMonad instances for ContT, AccumT, and SelectT from
    transformers

  • Add Eq, Ord, Show, and IsList instances for ByteArray

  • Add Semigroup instances for Array and SmallArray. This allows
    primitive to build on GHC 8.4 and later.

primitive - v0.6.1.0

Published by dolio about 9 years ago

  • Use more appropriate types in internal memset functions, which prevents
    overflows/segfaults on 64-bit systems.
  • Fixed a warning on GHC 7.10
  • Worked around a -dcore-lint bug in GHC 7.6/7.7