Bump versions and dependencies
[darcs-mirrors/vector.git] / Data / Vector / Primitive / Mutable / Safe.hs
1 #if __GLASGOW_HASKELL__ >= 701 && defined(VECTOR_BOUNDS_CHECKS)
2 {-# LANGUAGE Trustworthy #-}
3 #endif
4 -- |
5 -- Module : Data.Vector.Primitive.Mutable.Safe
6 -- Copyright : (c) Roman Leshchinskiy 2008-2010
7 -- License : BSD-style
8 --
9 -- Maintainer : Roman Leshchinskiy <rl@cse.unsw.edu.au>
10 -- Stability : experimental
11 -- Portability : non-portable
12 --
13 -- Safe interface to "Data.Vector.Primitive.Mutable"
14 --
15
16 module Data.Vector.Primitive.Mutable.Safe (
17 -- * Mutable vectors of primitive types
18 MVector, IOVector, STVector, Prim,
19
20 -- * Accessors
21
22 -- ** Length information
23 length, null,
24
25 -- ** Extracting subvectors
26 slice, init, tail, take, drop, splitAt,
27
28 -- ** Overlapping
29 overlaps,
30
31 -- * Construction
32
33 -- ** Initialisation
34 new, replicate, replicateM, clone,
35
36 -- ** Growing
37 grow,
38
39 -- ** Restricting memory usage
40 clear,
41
42 -- * Accessing individual elements
43 read, write, swap,
44
45 -- * Modifying vectors
46
47 -- ** Filling and copying
48 set, copy, move
49 ) where
50
51 import Data.Vector.Primitive.Mutable
52 import Prelude ()
53