Bump versions and dependencies
[darcs-mirrors/vector.git] / Data / Vector / Generic / Mutable / Safe.hs
1 #if __GLASGOW_HASKELL__ >= 701 && defined(VECTOR_BOUNDS_CHECKS)
2 {-# LANGUAGE Trustworthy #-}
3 #endif
4 -- |
5 -- Module : Data.Vector.Generic.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.Generic.Mutable"
14 --
15
16 module Data.Vector.Generic.Mutable.Safe (
17 -- * Class of mutable vector types
18 MVector,
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
50 -- * Internal operations
51 unstream, unstreamR,
52 munstream, munstreamR,
53 transform, transformR,
54 fill, fillR,
55 accum, update, reverse,
56 unstablePartition, unstablePartitionStream, partitionStream
57 ) where
58
59 import Data.Vector.Generic.Mutable
60 import Prelude ()
61