Disable broken array copying primitives for GHC 7.6.* and earlier
[darcs-mirrors/primitive.git] / primitive.cabal
1 Name:           primitive
2 Version:        0.5.0.1
3 License:        BSD3
4 License-File:   LICENSE
5 Author:         Roman Leshchinskiy <rl@cse.unsw.edu.au>
6 Maintainer:     Roman Leshchinskiy <rl@cse.unsw.edu.au>
7 Copyright:      (c) Roman Leshchinskiy 2009-2012
8 Homepage:       http://code.haskell.org/primitive
9 Category:       Data
10 Synopsis:       Primitive memory-related operations
11 Description:
12         .
13         This package provides various primitive memory-related operations.
14         .
15         Changes in version 0.5.0.1
16         .
17         * Disable array copying primitives for GHC 7.6.* and earlier
18         .
19         Changes in version 0.5
20         .
21         * New in "Data.Primitive.MutVar": @atomicModifyMutVar@
22         .
23         * Efficient block fill operations: @setByteArray@, @setAddr@
24         .
25
26 Cabal-Version:  >= 1.2
27 Build-Type:     Simple
28
29 Library
30   Extensions: CPP
31   Exposed-Modules:
32         Control.Monad.Primitive
33         Data.Primitive
34         Data.Primitive.MachDeps
35         Data.Primitive.Types
36         Data.Primitive.Array
37         Data.Primitive.ByteArray
38         Data.Primitive.Addr
39         Data.Primitive.MutVar
40
41   Other-Modules:
42         Data.Primitive.Internal.Compat
43         Data.Primitive.Internal.Operations
44
45   Build-Depends: base >= 4 && < 5, ghc-prim
46
47   Ghc-Options: -O2
48
49   Include-Dirs: cbits
50   Install-Includes: primitive-memops.h
51   includes: primitive-memops.h
52   c-sources: cbits/primitive-memops.c
53   cc-options: -O3 -ftree-vectorize -fomit-frame-pointer
54   if arch(i386) || arch(x86_64) {
55     cc-options: -msse2
56   }
57