Used by 1 package in nightly-2022-01-06(full list with versions):

Primitive GHC types with unlifted types inside. There used to be a module named Data.Primitive.UnliftedArray in the primitive library. However, it turns out that it is impossible to write such an API safely in versions of GHC before 8.10.1, thanks to some nasty interactions between unsafe coercions and the foreign function interface. This package also uses a somewhat different, and more flexible, approach than that module did.

Changes

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to the Haskell Package Versioning Policy.

1.0.0.0 – 2020-11-02

  • Redo everything. This uses unsafeCoerce# a lot to coerce between lifted and unlifted types. Stay on the 0.1.x.x series unless you need something from this newer version.

0.1.3.0 – 2020-01-23

  • Add PrimUnlifted instances for ShortText and ShortByteString.
  • Add singletonUnliftedArray.

0.1.2.0 – 2019-07-08

  • Add PrimUnlifted instances for MVar, IORef, and STRef.

0.1.1.0 – 2019-05-23

  • Cannot remember what happened in this release.

0.1.0.0 – 2019-05-17

  • First version. Released on an unsuspecting world.