#if __GLASGOW_HASKELL__ >= 701 && defined(VECTOR_BOUNDS_CHECKS) {-# LANGUAGE Trustworthy #-} #endif -- | -- Module : Data.Vector.Generic.Mutable.Safe -- Copyright : (c) Roman Leshchinskiy 2008-2010 -- License : BSD-style -- -- Maintainer : Roman Leshchinskiy -- Stability : experimental -- Portability : non-portable -- -- Safe interface to "Data.Vector.Generic.Mutable" -- module Data.Vector.Generic.Mutable.Safe ( -- * Class of mutable vector types MVector, -- * Accessors -- ** Length information length, null, -- ** Extracting subvectors slice, init, tail, take, drop, splitAt, -- ** Overlapping overlaps, -- * Construction -- ** Initialisation new, replicate, replicateM, clone, -- ** Growing grow, -- ** Restricting memory usage clear, -- * Accessing individual elements read, write, swap, -- * Modifying vectors -- ** Filling and copying set, copy, move, -- * Internal operations unstream, unstreamR, munstream, munstreamR, transform, transformR, fill, fillR, accum, update, reverse, unstablePartition, unstablePartitionStream, partitionStream ) where import Data.Vector.Generic.Mutable import Prelude ()