This file is indexed.

/usr/share/doc/libghc-lens-doc/html/Data-Text-Strict-Lens.html is in libghc-lens-doc 4.15.4-1.

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
<!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.Strict.Lens</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Data-Text-Strict-Lens.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Text-Strict-Lens.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">lens-4.15.4: Lenses, Folds and Traversals</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>(C) 2012-2016 Edward Kmett</td></tr><tr><th>License</th><td>BSD-style (see the file LICENSE)</td></tr><tr><th>Maintainer</th><td>Edward Kmett &lt;ekmett@gmail.com&gt;</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>non-portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Text.Strict.Lens</p></div><div id="description"><p class="caption">Description</p><div class="doc empty">&nbsp;</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"><a href="#v:packed">packed</a> :: <a href="Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></li><li class="src short"><a href="#v:unpacked">unpacked</a> :: <a href="Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:builder">builder</a> :: <a href="Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#t:Builder">Builder</a></li><li class="src short"><a href="#v:text">text</a> :: <a href="Control-Lens-Type.html#t:IndexedTraversal-39-">IndexedTraversal'</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Char.html#t:Char">Char</a></li><li class="src short"><a href="#v:utf8">utf8</a> :: <a href="Control-Lens-Type.html#t:Prism-39-">Prism'</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></li><li class="src short"><a href="#v:_Text">_Text</a> :: <a href="Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><span class="keyword">pattern</span> <a href="#v:Text">Text</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:packed" class="def">packed</a> :: <a href="Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/Data-Text-Strict-Lens.html#packed" class="link">Source</a> <a href="#v:packed" class="selflink">#</a></p><div class="doc"><p>This isomorphism can be used to <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#v:pack">pack</a></code> (or <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#v:unpack">unpack</a></code>) strict <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code>.</p><pre class="screen"><code class="prompt">&gt;&gt;&gt; </code><strong class="userinput"><code>&quot;hello&quot;^.packed -- :: Text
</code></strong>&quot;hello&quot;
</pre><pre><code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#v:pack">pack</a></code> x &#8801; x <code><a href="Control-Lens-Getter.html#v:-94-.">^.</a></code> <code><a href="Data-Text-Strict-Lens.html#v:packed">packed</a></code>
<code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#v:unpack">unpack</a></code> x &#8801; x <code><a href="Control-Lens-Getter.html#v:-94-.">^.</a></code> <code><a href="Control-Lens-Iso.html#v:from">from</a></code> <code><a href="Data-Text-Strict-Lens.html#v:packed">packed</a></code>
<code><a href="Data-Text-Strict-Lens.html#v:packed">packed</a></code> &#8801; <code><a href="Control-Lens-Iso.html#v:from">from</a></code> <code><a href="Data-Text-Strict-Lens.html#v:unpacked">unpacked</a></code>
<code><a href="Data-Text-Strict-Lens.html#v:packed">packed</a></code> &#8801; <code><a href="Control-Lens-Iso.html#v:iso">iso</a></code> <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#v:pack">pack</a></code> <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#v:unpack">unpack</a></code>
</pre></div></div><div class="top"><p class="src"><a id="v:unpacked" class="def">unpacked</a> :: <a href="Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Data-Text-Strict-Lens.html#unpacked" class="link">Source</a> <a href="#v:unpacked" class="selflink">#</a></p><div class="doc"><p>This isomorphism can be used to <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#v:unpack">unpack</a></code> (or <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#v:pack">pack</a></code>) lazy <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code>.</p><pre class="screen"><code class="prompt">&gt;&gt;&gt; </code><strong class="userinput"><code>&quot;hello&quot;^.unpacked -- :: String
</code></strong>&quot;hello&quot;
</pre><p>This <code><a href="Control-Lens-Type.html#t:Iso">Iso</a></code> is provided for notational convenience rather than out of great need, since</p><pre><code><a href="Data-Text-Strict-Lens.html#v:unpacked">unpacked</a></code> &#8801; <code><a href="Control-Lens-Iso.html#v:from">from</a></code> <code><a href="Data-Text-Strict-Lens.html#v:packed">packed</a></code>
</pre><pre><code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#v:pack">pack</a></code> x &#8801; x <code><a href="Control-Lens-Getter.html#v:-94-.">^.</a></code> <code><a href="Control-Lens-Iso.html#v:from">from</a></code> <code><a href="Data-Text-Strict-Lens.html#v:unpacked">unpacked</a></code>
<code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#v:unpack">unpack</a></code> x &#8801; x <code><a href="Control-Lens-Getter.html#v:-94-.">^.</a></code> <code><a href="Data-Text-Strict-Lens.html#v:packed">packed</a></code>
<code><a href="Data-Text-Strict-Lens.html#v:unpacked">unpacked</a></code> &#8801; <code><a href="Control-Lens-Iso.html#v:iso">iso</a></code> <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#v:unpack">unpack</a></code> <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#v:pack">pack</a></code>
</pre></div></div><div class="top"><p class="src"><a id="v:builder" class="def">builder</a> :: <a href="Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#t:Builder">Builder</a> <a href="src/Data-Text-Strict-Lens.html#builder" class="link">Source</a> <a href="#v:builder" class="selflink">#</a></p><div class="doc"><p>Convert between strict <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code> and <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#t:Builder">Builder</a></code> .</p><pre><code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#v:fromText">fromText</a></code> x &#8801; x <code><a href="Control-Lens-Getter.html#v:-94-.">^.</a></code> <code><a href="Data-Text-Strict-Lens.html#v:builder">builder</a></code>
<code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#v:toStrict">toStrict</a></code> (<code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#v:toLazyText">toLazyText</a></code> x) &#8801; x <code><a href="Control-Lens-Getter.html#v:-94-.">^.</a></code> <code><a href="Control-Lens-Iso.html#v:from">from</a></code> <code><a href="Data-Text-Strict-Lens.html#v:builder">builder</a></code>
</pre></div></div><div class="top"><p class="src"><a id="v:text" class="def">text</a> :: <a href="Control-Lens-Type.html#t:IndexedTraversal-39-">IndexedTraversal'</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Char.html#t:Char">Char</a> <a href="src/Data-Text-Strict-Lens.html#text" class="link">Source</a> <a href="#v:text" class="selflink">#</a></p><div class="doc"><p>Traverse the individual characters in strict <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code>.</p><pre class="screen"><code class="prompt">&gt;&gt;&gt; </code><strong class="userinput"><code>anyOf text (=='o') &quot;hello&quot;
</code></strong>True
</pre><p>When the type is unambiguous, you can also use the more general <code>each</code>.</p><pre><code><a href="Data-Text-Strict-Lens.html#v:text">text</a></code> &#8801; <code><a href="Data-Text-Strict-Lens.html#v:unpacked">unpacked</a></code> . <code><a href="Control-Lens-Traversal.html#v:traversed">traversed</a></code>
<code><a href="Data-Text-Strict-Lens.html#v:text">text</a></code> &#8801; <code>each</code>
</pre><p>Note that when just using this as a <code><a href="Control-Lens-Type.html#t:Setter">Setter</a></code>, <code><code><a href="Control-Lens-Setter.html#v:setting">setting</a></code> <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#v:map">map</a></code></code> can
 be more efficient.</p></div></div><div class="top"><p class="src"><a id="v:utf8" class="def">utf8</a> :: <a href="Control-Lens-Type.html#t:Prism-39-">Prism'</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/Data-Text-Strict-Lens.html#utf8" class="link">Source</a> <a href="#v:utf8" class="selflink">#</a></p><div class="doc"><p>Encode/Decode a strict <code><a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a></code> to/from strict <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></code>, via UTF-8.</p><pre class="screen"><code class="prompt">&gt;&gt;&gt; </code><strong class="userinput"><code>utf8 # &quot;&#9731;&quot;
</code></strong>&quot;\226\152\131&quot;
</pre></div></div><div class="top"><p class="src"><a id="v:_Text" class="def">_Text</a> :: <a href="Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Data-Text-Strict-Lens.html#_Text" class="link">Source</a> <a href="#v:_Text" class="selflink">#</a></p><div class="doc"><p>This is an alias for <code><a href="Data-Text-Strict-Lens.html#v:unpacked">unpacked</a></code> that makes it more obvious how to use it with <code><a href="Control-Lens-Review.html#v:-35-">#</a></code></p><pre>&gt; _Text # &quot;hello&quot; -- :: Text</pre><p>&quot;hello&quot;</p></div></div><div class="top"><p class="src"><span class="keyword">pattern</span> <a id="v:Text" class="def">Text</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/Data-Text-Strict-Lens.html#Text" class="link">Source</a> <a href="#v:Text" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>