/usr/share/doc/libghc-lens-doc/html/Data-Text-Strict-Lens.html is in libghc-lens-doc 3.10-2.
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 | <!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 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-3.10: Lenses, Folds and Traversals</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>non-portable</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>Edward Kmett <ekmett@gmail.com></td></tr><tr><th>Safe Haskell</th><td>Trustworthy</td></tr></table><p class="caption">Data.Text.Strict.Lens</p></div><div id="description"><p class="caption">Description</p><div class="doc empty"> </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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.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="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/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="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> <a href="/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="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:packed" class="def">packed</a> :: <a href="Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a><a href="src/Data-Text-Strict-Lens.html#packed" class="link">Source</a></p><div class="doc"><p>This isomorphism can be used to <code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text.html#v:pack">pack</a></code> (or <code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text.html#v:unpack">unpack</a></code>) strict <code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></code>.
</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>"hello"^.packed -- :: Text
</code></strong>"hello"
</pre><pre>
<code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text.html#v:pack">pack</a></code> x ≡ 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="/usr/share/doc/libghc-text-doc/html/Data-Text.html#v:unpack">unpack</a></code> x ≡ 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> ≡ <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> ≡ <code><a href="Control-Lens-Iso.html#v:iso">iso</a></code> <code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text.html#v:pack">pack</a></code> <code><a href="/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 name="v:unpacked" class="def">unpacked</a> :: <a href="Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a><a href="src/Data-Text-Strict-Lens.html#unpacked" class="link">Source</a></p><div class="doc"><p>This isomorphism can be used to <code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text.html#v:unpack">unpack</a></code> (or <code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text.html#v:pack">pack</a></code>) lazy <code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></code>.
</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>"hello"^.unpacked -- :: String
</code></strong>"hello"
</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> ≡ <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="/usr/share/doc/libghc-text-doc/html/Data-Text.html#v:pack">pack</a></code> x ≡ 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="/usr/share/doc/libghc-text-doc/html/Data-Text.html#v:unpack">unpack</a></code> x ≡ 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> ≡ <code><a href="Control-Lens-Iso.html#v:iso">iso</a></code> <code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text.html#v:unpack">unpack</a></code> <code><a href="/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 name="v:builder" class="def">builder</a> :: <a href="Control-Lens-Type.html#t:Iso-39-">Iso'</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> <a href="/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></p><div class="doc"><p>Convert between strict <code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></code> and <code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#t:Builder">Builder</a></code> .
</p><pre>
<code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#v:fromText">fromText</a></code> x ≡ 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="/usr/share/doc/libghc-text-doc/html/Data-Text-Lazy.html#v:toStrict">toStrict</a></code> (<code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Builder.html#v:toLazyText">toLazyText</a></code> x) ≡ 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 name="v:text" class="def">text</a> :: <a href="Control-Lens-Type.html#t:IndexedTraversal-39-">IndexedTraversal'</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Char.html#t:Char">Char</a><a href="src/Data-Text-Strict-Lens.html#text" class="link">Source</a></p><div class="doc"><p>Traverse the individual characters in strict <code><a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></code>.
</p><pre class="screen"><code class="prompt">>>> </code><strong class="userinput"><code>anyOf text (=='o') "hello"
</code></strong>True
</pre><p>When the type is unambiguous, you can also use the more general <code><a href="Control-Lens-Each.html#v:each">each</a></code>.
</p><pre>
<code><a href="Data-Text-Strict-Lens.html#v:text">text</a></code> ≡ <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> ≡ <code><a href="Control-Lens-Each.html#v:each">each</a></code>
</pre></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>
|