Disable broken array copying primitives for GHC 7.6.* and earlier
[darcs-mirrors/primitive.git] / primitive.cabal
index e1796aa..8c4328a 100644 (file)
@@ -1,23 +1,33 @@
 Name:           primitive
-Version:        0.3
+Version:        0.5.0.1
 License:        BSD3
 License-File:   LICENSE
 Author:         Roman Leshchinskiy <rl@cse.unsw.edu.au>
 Maintainer:     Roman Leshchinskiy <rl@cse.unsw.edu.au>
-Copyright:      (c) Roman Leshchinskiy 2009-10
+Copyright:      (c) Roman Leshchinskiy 2009-2012
 Homepage:       http://code.haskell.org/primitive
 Category:       Data
-Synopsis:       Wrappers for primitive operations
+Synopsis:       Primitive memory-related operations
 Description:
         .
-        This package provides wrappers for primitive array operations from
-        GHC.Prim.
+        This package provides various primitive memory-related operations.
+        .
+        Changes in version 0.5.0.1
+        .
+        * Disable array copying primitives for GHC 7.6.* and earlier
+        .
+        Changes in version 0.5
+        .
+        * New in "Data.Primitive.MutVar": @atomicModifyMutVar@
+        .
+        * Efficient block fill operations: @setByteArray@, @setAddr@
         .
 
 Cabal-Version:  >= 1.2
 Build-Type:     Simple
 
 Library
+  Extensions: CPP
   Exposed-Modules:
         Control.Monad.Primitive
         Data.Primitive
@@ -26,13 +36,22 @@ Library
         Data.Primitive.Array
         Data.Primitive.ByteArray
         Data.Primitive.Addr
+        Data.Primitive.MutVar
+
+  Other-Modules:
+        Data.Primitive.Internal.Compat
+        Data.Primitive.Internal.Operations
 
-  Build-Depends: base >= 2 && < 5, ghc-prim
+  Build-Depends: base >= 4 && < 5, ghc-prim
 
   Ghc-Options: -O2
 
   Include-Dirs: cbits
-  Install-Includes: memops.h
-  includes: memops.h
-  c-sources: cbits/memops.c
+  Install-Includes: primitive-memops.h
+  includes: primitive-memops.h
+  c-sources: cbits/primitive-memops.c
+  cc-options: -O3 -ftree-vectorize -fomit-frame-pointer
+  if arch(i386) || arch(x86_64) {
+    cc-options: -msse2
+  }