Skip to content
Snippets Groups Projects
Commit 95c4cbc7 authored by ian@well-typed.com's avatar ian@well-typed.com
Browse files

Add "deprecated in" comments to deprecated pragmas

parent 705ce331
No related branches found
No related tags found
No related merge requests found
......@@ -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...).
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment