on 734d2cf help sign in
66 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 Array
19 -- * Construction
21 -- Uninitialized Arrays
22 , new
23 , newPinned
25 -- From containers
26 , fromListN
27 , fromList
28 , writeN -- drop new
29 , write -- full buffer
30 -- writeLastN
32 -- * Appending elements
33 , snoc
35 -- * Appending streams
36 , writeAppendN
37 , writeAppend
39 -- * Inplace mutation
40 , putIndex
42 -- * Random access
43 , getIndex
45 -- * Conversion
46 , toList
48 -- * Unfolds
49 , reader
50 , readerRev
52 -- * Casting
53 , cast
54 , asBytes
56 -- * Size
57 , length
59 -- * Unbox Type Class
60 , Unbox (..)
61 )
62where
64import Prelude hiding (length, read)
65import Streamly.Internal.Data.Array.Mut
66import Streamly.Internal.Data.Unboxed (Unbox (..))