-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharray-primops.cabal
59 lines (46 loc) · 1.56 KB
/
array-primops.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: array-primops
version: 0.2.0.1
synopsis: Extra foreign primops for primitive arrays
license: BSD3
license-file: LICENSE
author: András Kovács
maintainer: [email protected]
copyright: 2015 András Kovács
category: Data
build-type: Simple
cabal-version: >=1.10
description:
Boxed arrays cannot be allocated without initialization, because in that case the garbage collector would try to follow wild pointers. This is a source of inefficiency; quite a few operations must allocate a new array, initialize it, then overwrite the initial elements with the actually relevant data. This package provides low-level primitives for doing such operations without superfluous copying.
source-repository head
type: git
location: https://github.com/AndrasKovacs/array-primops.git
library
default-language: Haskell2010
exposed-modules:
GHC.Prim.SmallArray,
GHC.Prim.Array
build-depends:
ghc-prim >= 0.4.0.0,
base >= 4.7 && <5
c-sources:
cbits/array.cmm,
cbits/smallArray.cmm
test-suite tests
default-language: Haskell2010
hs-source-dirs: tests
main-is: Tests.hs
type: exitcode-stdio-1.0
build-depends:
QuickCheck, tasty, tasty-quickcheck, ghc-prim, base, array-primops
ghc-options: -O2
benchmark benchmarks
default-language: Haskell2010
hs-source-dirs: benchmarks
main-is: Benchmarks.hs
type: exitcode-stdio-1.0
build-depends:
base,
ghc-prim,
array-primops,
gauge
ghc-options: -O2 -fllvm