All Versions
19
Latest Version
Avg Release Cycle
376 days
Latest Release
-

Changelog History
Page 1

  • v0.7.1.0 Changes

    • Introduce convenience class MonadPrim and MonadPrimBase.

    • Add PrimMonad and PrimBase instances for Lazy.ST (GHC >= 8.2). thanks to Avi Dessauer (@Avi-D-coder) for this first contribution

    • Add freezeByteArray and freezePrimArray.

    • Add compareByteArrays.

    • Add shrinkMutableByteArray.

    • Add Eq instances for MutableByteArray and MutablePrimArray. by Andrew Martin

    • Add functions for manipulating pinned Prim Arrays by Andrew Martin

    • Add copyPtrToMutableByteArray.

    • Add NFData instances for ByteArray, MutableByteArray, PrimArray and MutablePrimArray. by Callan McGill

    • Add shrinkSmallMutableArray.

    • Add clonePrimArray and cloneMutablePrimArray.

    • Add cloneMutableByteArray and cloneByteArray.

    • Add Prim instances for WordPtr and IntPtr.

    • Add NFData instances for Array and SmallArray. by Callan McGill

    • Add copyByteArrayToPtr and copyMutableByteArrayToPtr.

    • Export arrayFromList and arrayFromListN.

  • v0.7.0.1 Changes

    February 29, 2020
    • Allow building with GHC 8.12. Thanks Ryan GL Scott for this and every compat patch over time.
  • v0.7.0.0 Changes

    May 17, 2019
    • Remove Addr data type, lifted code should use Ptr a now

    • Define MonadFail instances for Array and SmallArray.

    • Define unsafeInterleave.

    • Add a Prim instance for StablePtr

    • Remove UnliftedArray and related type classes

    • Add a lot more tests for PrimArray.

    • Added PrimMonad instance for CPS Writer and RWS monads from Transformers

    • Remove useless accidental laziness in atomicModifyMutVar, making it match atomicModifyIORef. The semantics should be the same.

    • lots of little documentation twiddles.

  • v0.6.4.1 Changes

    • Add instances for the following newtypes from base: Const, Identity, Down, Dual, Sum, Product, First, Last, Min, Max

    • Add base-orphans dependency to test suite to accomodate older versions of GHC not having instances of Show and Eq for some of the above newtypes.

  • v0.6.4.0 Changes

    May 30, 2018
    • Introduce Data.Primitive.PrimArray, which offers types and function for dealing with a ByteArray tagged with a phantom type variable for tracking the element type.

    • Implement isByteArrayPinned and isMutableByteArrayPinned.

    • Add Eq1, Ord1, Show1, and Read1 instances for Array and SmallArray.

    • Improve the test suite. This includes having property tests for typeclasses from base such as Eq, Ord, Functor, Applicative, Monad, IsList, Monoid, Foldable, and Traversable.

    • Fix the broken IsList instance for ByteArray. The old definition would allocate a byte array of the correct size and then leave the memory unitialized instead of writing the list elements to it.

    • Fix the broken Functor instance for Array. The old definition would allocate an array of the correct size with thunks for erroring installed at every index. It failed to replace these thunks with the result of the function applied to the elements of the argument array.

    • Fix the broken Applicative instances of Array and SmallArray. The old implementation of <*> for Array failed to initialize some elements but correctly initialized others in the resulting Array. It is unclear what the old behavior of <*> was for SmallArray, but it was incorrect.

    • Fix the broken Monad instances for Array and SmallArray.

    • Fix the implementation of foldl1 in the Foldable instances for Array and SmallArray. In both cases, the old implementation simply returned the first element of the array and made no use of the other elements in the array.

    • Fix the implementation of mconcat in the Monoid instance for SmallArray.

    • Implement Data.Primitive.Ptr, implementations of Ptr functions that require a Prim constraint instead of a Storable constraint.

    • Add PrimUnlifted instances for TVar and MVar.

    • Use compareByteArrays# for the Eq and Ord instances of ByteArray when building with GHC 8.4 and newer.

    • Add Prim instances for lots of types in Foreign.C.Types and System.Posix.Types.

    • Reexport Data.Primitive.SmallArray and Data.Primitive.UnliftedArray from Data.Primitive.

    • Add fold functions and map function to Data.Primitive.UnliftedArray. Add typeclass instances for IsList, Ord, and Show.

    • Add defaultSetByteArray# and defaultSetOffAddr# to Data.Primitive.Types.

    • Add Data.Primitive.MVar, a replacement for Control.Concurrent.MVar that can run in any PrimMonad instead of just IO. It is not a full replacement. Notably, it's missing masking functions and support for adding finalizers.

  • v0.6.3.0 Changes

    January 22, 2018

    โž• 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.

  • v0.6.2.0 Changes

    • Drop support for GHCs before 7.4

    • SmallArray support

    • ArrayArray# based support for more efficient arrays of unlifted pointer types

    • Make Array and the like instances of various classes for convenient use

    • Add Prim instances for Ptr and FunPtr

    • Add ioToPrim, stToPrim and unsafe counterparts for situations that would otherwise require type ascriptions on primToPrim

    • Add evalPrim

    • Add PrimBase instance for IdentityT

  • v0.6.1.2

    March 08, 2019
  • v0.6.1.0 Changes

    September 20, 2015
    • 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

  • v0.6 Changes

    • Split PrimMonad into two classes to allow automatic lifting of primitive operations into monad transformers. The internal operation has moved to the PrimBase class.

    • Fixed the test suite on older GHCs