[commit: packages/primitive] ghc-head: Disable broken array copying primitives for GHC 7.6.* and earlier (5a77bde)
git at git.haskell.org
git at git.haskell.org
Thu Sep 26 11:44:12 CEST 2013
Repository : ssh://git@git.haskell.org/primitive
On branch : ghc-head
Link : http://git.haskell.org/packages/primitive.git/commitdiff/5a77bde9a758e1892e82cd1400ad7f6c1a8a6890
>---------------------------------------------------------------
commit 5a77bde9a758e1892e82cd1400ad7f6c1a8a6890
Author: Roman Leshchinskiy <rl at cse.unsw.edu.au>
Date: Wed Oct 10 15:18:47 2012 -0700
Disable broken array copying primitives for GHC 7.6.* and earlier
>---------------------------------------------------------------
5a77bde9a758e1892e82cd1400ad7f6c1a8a6890
Data/Primitive/Array.hs | 6 ++++--
primitive.cabal | 6 +++++-
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/Data/Primitive/Array.hs b/Data/Primitive/Array.hs
index 1954857..b82dcac 100644
--- a/Data/Primitive/Array.hs
+++ b/Data/Primitive/Array.hs
@@ -117,7 +117,8 @@ copyArray :: PrimMonad m
-> Int -- ^ number of elements to copy
-> m ()
{-# INLINE copyArray #-}
-#if __GLASGOW_HASKELL__ >= 702
+#if __GLASGOW_HASKELL__ > 706
+-- NOTE: copyArray# and copyMutableArray# are slightly broken in GHC 7.6.* and earlier
copyArray (MutableArray dst#) (I# doff#) (Array src#) (I# soff#) (I# len#)
= primitive_ (copyArray# src# soff# dst# doff# len#)
#else
@@ -140,7 +141,8 @@ copyMutableArray :: PrimMonad m
-> Int -- ^ number of elements to copy
-> m ()
{-# INLINE copyMutableArray #-}
-#if __GLASGOW_HASKELL__ >= 702
+#if __GLASGOW_HASKELL__ >= 706
+-- NOTE: copyArray# and copyMutableArray# are slightly broken in GHC 7.6.* and earlier
copyMutableArray (MutableArray dst#) (I# doff#)
(MutableArray src#) (I# soff#) (I# len#)
= primitive_ (copyMutableArray# src# soff# dst# doff# len#)
diff --git a/primitive.cabal b/primitive.cabal
index c58d00c..8c4328a 100644
--- a/primitive.cabal
+++ b/primitive.cabal
@@ -1,5 +1,5 @@
Name: primitive
-Version: 0.5
+Version: 0.5.0.1
License: BSD3
License-File: LICENSE
Author: Roman Leshchinskiy <rl at cse.unsw.edu.au>
@@ -12,6 +12,10 @@ Description:
.
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@
More information about the ghc-commits
mailing list