on fe28607 help sign in
64 lines 1.1 kB history raw
1-- |
2-- Module : Streamly.Data.Array.Mut
3-- Copyright : (c) 2022 Composewell Technologies
4--
5-- License : BSD3
6-- Maintainer : streamly@composewell.com
7-- Stability : released
8-- Portability : GHC
9--
10-- This module provides mutable arrays suitable for long lived data storage,
11-- random access, and mutation.
12--
14module Streamly.Data.Array.Mut
15 (
16 -- * Types
17 Unbox (..)
18 , Array
20 -- * Construction
22 -- Uninitialized Arrays
23 , new
24 , newPinned
26 -- From containers
27 , fromListN
28 , fromList
29 , writeN -- drop new
30 , write -- full buffer
31 -- writeLastN
33 -- * Appending elements
34 , snoc
36 -- * Appending streams
37 , writeAppendN
38 , writeAppend
40 -- * Inplace mutation
41 , putIndex
43 -- * Random access
44 , getIndex
46 -- * Conversion
47 , toList
49 -- * Unfolds
50 , reader
51 , readerRev
53 -- * Casting
54 , cast
55 , asBytes
57 -- * Size
58 , length
59 )
60where
62import Prelude hiding (length, read)
63import Streamly.Internal.Data.Array.Mut
64import Streamly.Internal.Data.Unboxed (Unbox (..))