Package2.2.0.0Data
primitive-unlifted
Primitive GHC types with unlifted types inside
- Version2.2.0.0
- CategoryData
- LicenceBSD-3-Clause
- AuthorAndrew Martin
- Maintainerandrew.thaddeus@gmail.com
- Homepagegithub.com/haskell-primitive/primitive-unlifted
- Pinned byhackage primitive-unlifted 2.2.0.0
- Sourcehackage.haskell.org/package/primitive-unlifted-2.2.0.0
Modules
- Data.Primitive.TArray.ClassicThis module is a drop-in replacement for Control.Concurrent.STM.TArray
- Data.Primitive.Unlifted.ArrayGHC contains three general classes of value types: Unboxed types: values are machine values made up of fixed numbers of bytes.
- Data.Primitive.Unlifted.Array.PrimopsPrimitive types representing unlifted arrays and the
- Data.Primitive.Unlifted.Array.STA version of the Data.Primitive.Unlifted.Array interface
- Data.Primitive.Unlifted.BoxTraditionally, there were only a few basic unlifted types available in
- Data.Primitive.Unlifted.Class
- Data.Primitive.Unlifted.MVarThis module includes all the features of Control.Concurrent.MVar, except
- Data.Primitive.Unlifted.MVar.Primops
- Data.Primitive.Unlifted.MVar.STThis module includes all the features of Control.Concurrent.MVar, except
- Data.Primitive.Unlifted.MutVar
- Data.Primitive.Unlifted.MutVar.Primops
- Data.Primitive.Unlifted.MutVar.ST
- Data.Primitive.Unlifted.SmallArrayGHC contains three general classes of value types: Unboxed types: values are machine values made up of fixed numbers of bytes.
- Data.Primitive.Unlifted.SmallArray.PrimopsPrimitive types representing unlifted arrays and the
- Data.Primitive.Unlifted.SmallArray.STA version of the Data.Primitive.Unlifted.SmallArray interface
- Data.Primitive.Unlifted.Type
- Data.Primitive.Unlifted.WeakSystem.Mem.Weak provides weak references from lifted keys to lifted
- Data.Primitive.Unlifted.Weak.IOA version of Data.Primitive.Unlifted.Weak specialized to the IO type.
- Data.Primitive.Unlifted.Weak.PrimopsPrimops for weak references from (lifted or unlifted) values
Description
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.
Depends on
5 packages- array-0.5.8.0with GHC
- base-4.23.0.0with GHC
- bytestring-0.12.2.0with GHC
- primitive-0.9.1.0in this set
- text-short-0.1.6.1in this set