cabal-version: 2.2
name: primitive-unlifted
version: 2.2.0.0
synopsis: Primitive GHC types with unlifted types inside
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.
homepage: https://github.com/haskell-primitive/primitive-unlifted
bug-reports: https://github.com/haskell-primitive/primitive-unlifted/issues
license: BSD-3-Clause
license-file: LICENSE
author: Andrew Martin
maintainer: andrew.thaddeus@gmail.com
copyright: 2019 Andrew Martin
category: Data
extra-source-files: CHANGELOG.md
tested-with: GHC == 9.4.5
library
exposed-modules:
Data.Primitive.Unlifted.Class
Data.Primitive.Unlifted.Array
Data.Primitive.Unlifted.SmallArray
Data.Primitive.Unlifted.SmallArray.ST
Data.Primitive.Unlifted.SmallArray.Primops
Data.Primitive.Unlifted.Array.ST
Data.Primitive.Unlifted.Array.Primops
Data.Primitive.Unlifted.MutVar.Primops
Data.Primitive.Unlifted.MutVar.ST
Data.Primitive.Unlifted.MutVar
Data.Primitive.Unlifted.Box
Data.Primitive.Unlifted.Weak
Data.Primitive.Unlifted.Weak.IO
Data.Primitive.Unlifted.Weak.Primops
Data.Primitive.TArray.Classic
Data.Primitive.Unlifted.MVar
Data.Primitive.Unlifted.MVar.ST
Data.Primitive.Unlifted.MVar.Primops
Data.Primitive.Unlifted.Type
build-depends:
, base >=4.17.1.0 && <5
, bytestring >=0.10.8.2 && <0.13
, primitive >= 0.7 && <0.10
, text-short >=0.1.3 && <0.2
, array
hs-source-dirs: src
ghc-options: -Wall -O2
default-language: Haskell2010
test-suite test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends:
, base
, primitive-unlifted
, primitive >=0.9
, quickcheck-classes-base
, QuickCheck
, tasty-quickcheck
, tasty
, stm
ghc-options: -Wall -O2
default-language: Haskell2010
source-repository head
type:
git
location:
https://github.com/haskell-primitive/primitive-unlifted.git