Package2.1.0.0Data
primitive-unlifted
Primitive GHC types with unlifted types inside
- Version2.1.0.0
- CategoryData
- LicenceBSD-3-Clause
- AuthorAndrew Martin
- Maintainerandrew.thaddeus@gmail.com
- Homepagegithub.com/haskell-primitive/primitive-unlifted
- Pinned byhackage primitive-unlifted 2.1.0.0
- Sourcehackage.haskell.org/package/primitive-unlifted-2.1.0.0
Modules
19 modules- Data.Primitive.TArray.Classic1This module is a drop-in replacement for Control.Concurrent.STM.TArray
- Data.Primitive.Unlifted.Array36GHC contains three general classes of value types: Unboxed types: values are machine values made up of fixed numbers of bytes.
- Data.Primitive.Unlifted.Array.Primops20Primitive types representing unlifted arrays and the
- Data.Primitive.Unlifted.Array.ST36A version of the Data.Primitive.Unlifted.Array interface
- Data.Primitive.Unlifted.Box3Traditionally, there were only a few basic unlifted types available in
- Data.Primitive.Unlifted.Class1
- Data.Primitive.Unlifted.MVar18This module includes all the features of Control.Concurrent.MVar, except
- Data.Primitive.Unlifted.MVar.Primops10
- Data.Primitive.Unlifted.MVar.ST18This module includes all the features of Control.Concurrent.MVar, except
- Data.Primitive.Unlifted.MutVar9
- Data.Primitive.Unlifted.MutVar.Primops7
- Data.Primitive.Unlifted.MutVar.ST9
- Data.Primitive.Unlifted.SmallArray37GHC contains three general classes of value types: Unboxed types: values are machine values made up of fixed numbers of bytes.
- Data.Primitive.Unlifted.SmallArray.Primops21Primitive types representing unlifted arrays and the
- Data.Primitive.Unlifted.SmallArray.ST37A version of the Data.Primitive.Unlifted.SmallArray interface
- Data.Primitive.Unlifted.Type1
- Data.Primitive.Unlifted.Weak12System.Mem.Weak provides weak references from lifted keys to lifted
- Data.Primitive.Unlifted.Weak.IO12A version of Data.Primitive.Unlifted.Weak specialized to the IO type.
- Data.Primitive.Unlifted.Weak.Primops9Primops 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.20.2.0with GHC
- bytestring-0.12.2.0with GHC
- primitive-0.9.1.0in this set
- text-short-0.1.6in this set