This file is indexed.

/usr/share/doc/libghc-text-doc/html/Data-Text-Array.html is in libghc-text-doc 0.11.1.13-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Data.Text.Array</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Data-Text-Array.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Text-Array.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">text-0.11.1.13: An efficient packed Unicode text type.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>bos@serpentine.com, rtomharper@googlemail.com,
               duncan@haskell.org</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Data.Text.Array</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Types
</a></li><li><a href="#g:2">Functions
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Packed, unboxed, heap-resident arrays.  Suitable for performance
 critical use, both in terms of large data quantities and high
 speed.
</p><p>This module is intended to be imported <code>qualified</code>, to avoid name
 clashes with <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html">Prelude</a> functions, e.g.
</p><pre> import qualified Data.Text.Array as A
</pre><p>The names in this module resemble those in the <code><a href="Data.html#t:Array">Array</a></code> family
 of modules, but are shorter due to the assumption of qualifid
 naming.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span>  <a href="#t:Array">Array</a> </li><li class="src short"><span class="keyword">data</span>  <a href="#t:MArray">MArray</a> s</li><li class="src short"><a href="#v:copyM">copyM</a> ::  <a href="Data-Text-Array.html#t:MArray">MArray</a> s -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Data-Text-Array.html#t:MArray">MArray</a> s -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:copyI">copyI</a> ::  <a href="Data-Text-Array.html#t:MArray">MArray</a> s -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Data-Text-Array.html#t:Array">Array</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:empty">empty</a> :: <a href="Data-Text-Array.html#t:Array">Array</a></li><li class="src short"><a href="#v:equal">equal</a> :: <a href="Data-Text-Array.html#t:Array">Array</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Data-Text-Array.html#t:Array">Array</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:run">run</a> :: (<span class="keyword">forall</span> s.  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s (<a href="Data-Text-Array.html#t:MArray">MArray</a> s)) -&gt; <a href="Data-Text-Array.html#t:Array">Array</a></li><li class="src short"><a href="#v:run2">run2</a> ::  (<span class="keyword">forall</span> s.  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s (<a href="Data-Text-Array.html#t:MArray">MArray</a> s, a)) -&gt; (<a href="Data-Text-Array.html#t:Array">Array</a>, a)</li><li class="src short"><a href="#v:toList">toList</a> :: <a href="Data-Text-Array.html#t:Array">Array</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a>]</li><li class="src short"><a href="#v:unsafeFreeze">unsafeFreeze</a> ::  <a href="Data-Text-Array.html#t:MArray">MArray</a> s -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s <a href="Data-Text-Array.html#t:Array">Array</a></li><li class="src short"><a href="#v:unsafeIndex">unsafeIndex</a> :: <a href="Data-Text-Array.html#t:Array">Array</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a></li><li class="src short"><a href="#v:new">new</a> :: <span class="keyword">forall</span> s.  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s (<a href="Data-Text-Array.html#t:MArray">MArray</a> s)</li><li class="src short"><a href="#v:unsafeWrite">unsafeWrite</a> ::  <a href="Data-Text-Array.html#t:MArray">MArray</a> s -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li></ul></div><div id="interface"><h1 id="g:1">Types
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Array" class="def">Array</a>  <a href="src/Data-Text-Array.html#Array" class="link">Source</a></p><div class="doc"><p>Immutable array type.
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:MArray" class="def">MArray</a> s <a href="src/Data-Text-Array.html#MArray" class="link">Source</a></p><div class="doc"><p>Mutable array type, for use in the ST monad.
</p></div></div><h1 id="g:2">Functions
</h1><div class="top"><p class="src"><a name="v:copyM" class="def">copyM</a><a href="src/Data-Text-Array.html#copyM" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Data-Text-Array.html#t:MArray">MArray</a> s</td><td class="doc"><p>Destination
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Destination offset
</p></td></tr><tr><td class="src">-&gt; <a href="Data-Text-Array.html#t:MArray">MArray</a> s</td><td class="doc"><p>Source
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Source offset
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Count
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Copy some elements of a mutable array.
</p></div></div><div class="top"><p class="src"><a name="v:copyI" class="def">copyI</a><a href="src/Data-Text-Array.html#copyI" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Data-Text-Array.html#t:MArray">MArray</a> s</td><td class="doc"><p>Destination
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Destination offset
</p></td></tr><tr><td class="src">-&gt; <a href="Data-Text-Array.html#t:Array">Array</a></td><td class="doc"><p>Source
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Source offset
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>First offset in destination <em>not</em> to
 copy (i.e. <em>not</em> length)
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Copy some elements of an immutable array.
</p></div></div><div class="top"><p class="src"><a name="v:empty" class="def">empty</a> :: <a href="Data-Text-Array.html#t:Array">Array</a><a href="src/Data-Text-Array.html#empty" class="link">Source</a></p><div class="doc"><p>An empty immutable array.
</p></div></div><div class="top"><p class="src"><a name="v:equal" class="def">equal</a><a href="src/Data-Text-Array.html#equal" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Data-Text-Array.html#t:Array">Array</a></td><td class="doc"><p>First
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Offset into first
</p></td></tr><tr><td class="src">-&gt; <a href="Data-Text-Array.html#t:Array">Array</a></td><td class="doc"><p>Second
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Offset into second
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Count
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Compare portions of two arrays for equality.  No bounds checking
 is performed.
</p></div></div><div class="top"><p class="src"><a name="v:run" class="def">run</a> :: (<span class="keyword">forall</span> s.  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s (<a href="Data-Text-Array.html#t:MArray">MArray</a> s)) -&gt; <a href="Data-Text-Array.html#t:Array">Array</a><a href="src/Data-Text-Array.html#run" class="link">Source</a></p><div class="doc"><p>Run an action in the ST monad and return an immutable array of
 its result.
</p></div></div><div class="top"><p class="src"><a name="v:run2" class="def">run2</a> ::  (<span class="keyword">forall</span> s.  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s (<a href="Data-Text-Array.html#t:MArray">MArray</a> s, a)) -&gt; (<a href="Data-Text-Array.html#t:Array">Array</a>, a)<a href="src/Data-Text-Array.html#run2" class="link">Source</a></p><div class="doc"><p>Run an action in the ST monad and return an immutable array of
 its result paired with whatever else the action returns.
</p></div></div><div class="top"><p class="src"><a name="v:toList" class="def">toList</a> :: <a href="Data-Text-Array.html#t:Array">Array</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a>]<a href="src/Data-Text-Array.html#toList" class="link">Source</a></p><div class="doc"><p>Convert an immutable array to a list.
</p></div></div><div class="top"><p class="src"><a name="v:unsafeFreeze" class="def">unsafeFreeze</a> ::  <a href="Data-Text-Array.html#t:MArray">MArray</a> s -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s <a href="Data-Text-Array.html#t:Array">Array</a><a href="src/Data-Text-Array.html#unsafeFreeze" class="link">Source</a></p><div class="doc"><p>Freeze a mutable array. Do not mutate the <code><a href="Data-Text-Array.html#t:MArray">MArray</a></code> afterwards!
</p></div></div><div class="top"><p class="src"><a name="v:unsafeIndex" class="def">unsafeIndex</a> :: <a href="Data-Text-Array.html#t:Array">Array</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a><a href="src/Data-Text-Array.html#unsafeIndex" class="link">Source</a></p><div class="doc"><p>Unchecked read of an immutable array.  May return garbage or
 crash on an out-of-bounds access.
</p></div></div><div class="top"><p class="src"><a name="v:new" class="def">new</a> :: <span class="keyword">forall</span> s.  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s (<a href="Data-Text-Array.html#t:MArray">MArray</a> s)<a href="src/Data-Text-Array.html#new" class="link">Source</a></p><div class="doc"><p>Create an uninitialized mutable array.
</p></div></div><div class="top"><p class="src"><a name="v:unsafeWrite" class="def">unsafeWrite</a> ::  <a href="Data-Text-Array.html#t:MArray">MArray</a> s -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Word.html#t:Word16">Word16</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad-ST-Safe.html#t:ST">ST</a> s <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Data-Text-Array.html#unsafeWrite" class="link">Source</a></p><div class="doc"><p>Unchecked write of a mutable array.  May return garbage or crash
 on an out-of-bounds access.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>