on 03218ad help sign in
108 lines 2.2 kB history raw
1#include "inline.hs"
3-- |
4-- Module : Streamly.Internal.Data.Array.Prim.Pinned
5-- Copyright : (c) 2020 Composewell Technologies
6--
7-- License : BSD-3-Clause
8-- Maintainer : streamly@composewell.com
9-- Stability : experimental
10-- Portability : GHC
11--
12module Streamly.Internal.Data.Array.Prim.Pinned
13 (
14 Array
16 -- * Construction
18 -- Pure List APIs
19 , A.fromListN
20 , A.fromList
22 -- Stream Folds
23 , fromStreamN
24 , fromStream
26 -- Monadic APIs
27 -- , newArray
28 , A.writeN -- drop new
29 , A.write -- full buffer
31 -- * Elimination
33 , A.toList
34 , toStream
35 , toStreamRev
36 , read
37 , unsafeRead
39 -- * Random Access
40 , length
41 , null
42 , last
43 -- , (!!)
44 , readIndex
45 , A.unsafeIndex
46 -- , readIndices
47 -- , readRanges
49 -- , readFrom -- read from a given position to the end of file
50 -- , readFromRev -- read from a given position to the beginning of file
51 -- , readTo -- read from beginning up to the given position
52 -- , readToRev -- read from end to the given position in file
53 -- , readFromTo
54 -- , readFromThenTo
56 -- , readChunksOfFrom
57 -- , ...
59 -- , writeIndex
60 -- , writeFrom -- start writing at the given position
61 -- , writeFromRev
62 -- , writeTo -- write from beginning up to the given position
63 -- , writeToRev
64 -- , writeFromTo
65 -- , writeFromThenTo
66 --
67 -- , writeChunksOfFrom
68 -- , ...
70 -- , writeIndex
71 -- , writeIndices
72 -- , writeRanges
74 -- -- * Search
75 -- , bsearch
76 -- , bsearchIndex
77 -- , find
78 -- , findIndex
79 -- , findIndices
81 -- -- * In-pace mutation (for Mutable Array type)
82 -- , partitionBy
83 -- , shuffleBy
84 -- , foldtWith
85 -- , foldbWith
87 -- * Immutable Transformations
88-- , streamTransform
90 -- * Folding Arrays
91 , streamFold
92 , fold
94 -- * Folds with Array as the container
95-- , D.lastN
97 -- * Streaming array operations
99 , concat
100 , compact
102 )
103where
105import Streamly.Internal.Data.Array.Prim.Pinned.Type (Array(..), length)
106import qualified Streamly.Internal.Data.Array.Prim.Pinned.Type as A
108#include "Streamly/Internal/Data/Array/PrimInclude.hs"