[commit: array] master: Add "deprecated in" comments to deprecated pragmas (95c4cbc)

Ian Lynagh igloo at earth.li
Tue Feb 19 22:06:27 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/packages/array

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/95c4cbc7417eca42ebe1c1ac97f10a00251e5178

>---------------------------------------------------------------

commit 95c4cbc7417eca42ebe1c1ac97f10a00251e5178
Author: Ian Lynagh <ian at well-typed.com>
Date:   Tue Feb 19 15:35:21 2013 +0000

    Add "deprecated in" comments to deprecated pragmas

>---------------------------------------------------------------

 Data/Array/IO.hs       |    4 +---
 Data/Array/MArray.hs   |    4 +---
 Data/Array/ST.hs       |    4 +---
 Data/Array/Storable.hs |    4 +---
 4 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/Data/Array/IO.hs b/Data/Array/IO.hs
index 1e7b944..62a1fe3 100644
--- a/Data/Array/IO.hs
+++ b/Data/Array/IO.hs
@@ -153,9 +153,7 @@ illegalBufferSize _ fn sz = ioError $
 #endif /* !__GLASGOW_HASKELL__ */
 
 
-{-# DEPRECATED castIOUArray
-              "Please import from Data.Array.Unsafe instead; This will be removed in the next release"
- #-}
+{-# DEPRECATED castIOUArray "Please import from Data.Array.Unsafe instead; This will be removed in the next release" #-} -- deprecated in 7.4
 -- | Casts an 'IOUArray' with one element type into one with a
 -- different element type.  All the elements of the resulting array
 -- are undefined (unless you know what you\'re doing...).
diff --git a/Data/Array/MArray.hs b/Data/Array/MArray.hs
index 5d7a301..79cd057 100644
--- a/Data/Array/MArray.hs
+++ b/Data/Array/MArray.hs
@@ -53,9 +53,7 @@ import qualified Data.Array.Base as U ( unsafeFreeze, unsafeThaw )
 import Data.Array.IArray
 #endif
 
-{-# DEPRECATED unsafeFreeze, unsafeThaw
-              "Please import from Data.Array.Unsafe instead; This will be removed in the next release"
- #-}
+{-# DEPRECATED unsafeFreeze, unsafeThaw "Please import from Data.Array.Unsafe instead; This will be removed in the next release" #-} -- deprecated in 7.4
 
 {- |
    Converts an mutable array into an immutable array.  The
diff --git a/Data/Array/ST.hs b/Data/Array/ST.hs
index 49d9874..5771747 100644
--- a/Data/Array/ST.hs
+++ b/Data/Array/ST.hs
@@ -74,9 +74,7 @@ runSTUArray st = runST (st >>= unsafeFreezeSTUArray)
 -- this essentially constrains us to a single unsafeFreeze for all STUArrays
 -- (in theory we might have a different one for certain element types).
 
-{-# DEPRECATED castSTUArray
-              "Please import from Data.Array.Unsafe instead; This will be removed in the next release"
- #-}
+{-# DEPRECATED castSTUArray "Please import from Data.Array.Unsafe instead; This will be removed in the next release" #-} -- deprecated in 7.4
 
 -- | Casts an 'STUArray' with one element type into one with a
 -- different element type.  All the elements of the resulting array
diff --git a/Data/Array/Storable.hs b/Data/Array/Storable.hs
index fa7dbbd..bec5547 100644
--- a/Data/Array/Storable.hs
+++ b/Data/Array/Storable.hs
@@ -44,9 +44,7 @@ import Data.Array.MArray
 import Data.Array.Storable.Internals hiding ( unsafeForeignPtrToStorableArray )
 import qualified Data.Array.Unsafe as U ( unsafeForeignPtrToStorableArray )
 
-{-# DEPRECATED unsafeForeignPtrToStorableArray
-              "Please import from Data.Array.Unsafe instead; This will be removed in the next release"
- #-}
+{-# DEPRECATED unsafeForeignPtrToStorableArray "Please import from Data.Array.Unsafe instead; This will be removed in the next release" #-} -- deprecated in 7.4
 
 -- |Construct a 'StorableArray' from an arbitrary 'ForeignPtr'.  It is
 -- the caller's responsibility to ensure that the 'ForeignPtr' points to





More information about the ghc-commits mailing list