on 4300a9f help sign in
49 lines 963 B history raw
1{-# LANGUAGE CPP #-}
2-- |
3-- Module : Streamly.Data.MutArray.Generic
4-- Copyright : (c) 2020 Composewell Technologies
5-- License : BSD3-3-Clause
6-- Maintainer : streamly@composewell.com
7-- Stability : experimental
8-- Portability : GHC
9--
10-- Unconstrained version of "Streamly.Data.MutArray" module.
11--
12-- See the "Streamly.Data.MutArray" module for documentation.
13--
14module Streamly.Data.MutArray.Generic
16 -- * Setup
17 -- | To execute the code examples provided in this module in ghci, please
18 -- run the following commands first.
19 --
20 -- $setup
22 -- * Type
23 MutArray
25 -- * Construction
26 , writeN
28 -- * Appending elements
29 , new
30 , snoc
32 -- * Conversion
33 , toList
35 -- * Unfolds
36 , reader
38 -- * Random reads
39 , getIndex
41 -- * Inplace mutation
42 , putIndex
43 , modifyIndex
44 )
45where
47import Streamly.Internal.Data.Array.Generic.Mut.Type
49#include "DocTestDataMutArrayGeneric.hs"