This file is indexed.

/usr/share/doc/libghc-brick-doc/html/Data-Text-Markup.html is in libghc-brick-doc 0.18-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
<!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.Markup</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-Markup.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Text-Markup.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">brick-0.18: A declarative terminal user interface library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Data.Text.Markup</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This module provides an API for &quot;marking up&quot; text with arbitrary
 values. A piece of markup can then be converted to a list of pairs
 representing the sequences of characters assigned the same markup
 value.</p><p>This interface is experimental. Don't use this for your full-file
 syntax highlighter just yet!</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:Markup">Markup</a> a</li><li class="src short"><a href="#v:markupToList">markupToList</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a -&gt; [[(<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>, a)]]</li><li class="src short"><a href="#v:markupSet">markupSet</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; (<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/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a>) -&gt; a -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a</li><li class="src short"><a href="#v:fromList">fromList</a> :: [(<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>, a)] -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a</li><li class="src short"><a href="#v:fromText">fromText</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> a =&gt; <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a</li><li class="src short"><a href="#v:toText">toText</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a -&gt; <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:-64--64-">(@@)</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -&gt; a -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Markup" class="def">Markup</a> a <a href="src/Data-Text-Markup.html#Markup" class="link">Source</a> <a href="#t:Markup" class="selflink">#</a></p><div class="doc"><p>Markup with metadata type <code>a</code> assigned to each character.</p></div><div class="subs instances"><p id="control.i:Markup" class="caption collapser" onclick="toggleSection('i:Markup')">Instances</p><div id="section.i:Markup" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Markup:Show:1" class="instance expander" onclick="toggleSection('i:id:Markup:Show:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> a =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:Show">Show</a> (<a href="Data-Text-Markup.html#t:Markup">Markup</a> a)</span> <a href="src/Data-Text-Markup.html#line-29" class="link">Source</a> <a href="#t:Markup" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Markup:Show:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Data-Text-Markup.html#t:Markup">Markup</a> a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Data-Text-Markup.html#t:Markup">Markup</a> a] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Markup:IsString:2" class="instance expander" onclick="toggleSection('i:id:Markup:IsString:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> a =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:IsString">IsString</a> (<a href="Data-Text-Markup.html#t:Markup">Markup</a> a)</span> <a href="src/Data-Text-Markup.html#line-36" class="link">Source</a> <a href="#t:Markup" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Markup:IsString:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fromString">fromString</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="Data-Text-Markup.html#t:Markup">Markup</a> a <a href="#v:fromString" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:Markup:Monoid:3" class="instance expander" onclick="toggleSection('i:id:Markup:Monoid:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> (<a href="Data-Text-Markup.html#t:Markup">Markup</a> a)</span> <a href="src/Data-Text-Markup.html#line-31" class="link">Source</a> <a href="#t:Markup" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:Markup:Monoid:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mempty">mempty</a> :: <a href="Data-Text-Markup.html#t:Markup">Markup</a> a <a href="#v:mempty" class="selflink">#</a></p><p class="src"><a href="#v:mappend">mappend</a> :: <a href="Data-Text-Markup.html#t:Markup">Markup</a> a -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a <a href="#v:mappend" class="selflink">#</a></p><p class="src"><a href="#v:mconcat">mconcat</a> :: [<a href="Data-Text-Markup.html#t:Markup">Markup</a> a] -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a <a href="#v:mconcat" class="selflink">#</a></p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:markupToList" class="def">markupToList</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a -&gt; [[(<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>, a)]] <a href="src/Data-Text-Markup.html#markupToList" class="link">Source</a> <a href="#v:markupToList" class="selflink">#</a></p><div class="doc"><p>Convert markup to a list of lines. Each line is represented by a
 list of pairs in which each pair contains the longest subsequence of
 characters having the same metadata.</p></div></div><div class="top"><p class="src"><a id="v:markupSet" class="def">markupSet</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; (<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/ghc-doc/html/libraries/base-4.9.1.0/Data-Int.html#t:Int">Int</a>) -&gt; a -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a <a href="src/Data-Text-Markup.html#markupSet" class="link">Source</a> <a href="#v:markupSet" class="selflink">#</a></p><div class="doc"><p>Set the metadata for a range of character positions in a piece of
 markup. This is useful for, e.g., syntax highlighting.</p></div></div><div class="top"><p class="src"><a id="v:fromList" class="def">fromList</a> :: [(<a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a>, a)] -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a <a href="src/Data-Text-Markup.html#fromList" class="link">Source</a> <a href="#v:fromList" class="selflink">#</a></p><div class="doc"><p>Convert a list of text and metadata pairs into markup.</p></div></div><div class="top"><p class="src"><a id="v:fromText" class="def">fromText</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Monoid.html#t:Monoid">Monoid</a> a =&gt; <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a <a href="src/Data-Text-Markup.html#fromText" class="link">Source</a> <a href="#v:fromText" class="selflink">#</a></p><div class="doc"><p>Build markup from text with the default metadata.</p></div></div><div class="top"><p class="src"><a id="v:toText" class="def">toText</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Eq.html#t:Eq">Eq</a> a =&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a -&gt; <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> <a href="src/Data-Text-Markup.html#toText" class="link">Source</a> <a href="#v:toText" class="selflink">#</a></p><div class="doc"><p>Extract the text from markup, discarding the markup metadata.</p></div></div><div class="top"><p class="src"><a id="v:-64--64-" class="def">(@@)</a> :: <a href="file:///usr/share/doc/libghc-text-doc/html/Data-Text.html#t:Text">Text</a> -&gt; a -&gt; <a href="Data-Text-Markup.html#t:Markup">Markup</a> a <a href="src/Data-Text-Markup.html#%40%40" class="link">Source</a> <a href="#v:-64--64-" class="selflink">#</a></p><div class="doc"><p>Build a piece of markup; assign the specified metadata to every
 character in the specified text.</p></div></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>